本文整理了Java中javax.swing.JTextField.getToolTipText()
方法的一些代码示例,展示了JTextField.getToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.getToolTipText()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:getToolTipText
暂无
代码示例来源:origin: org.apache.jmeter/jorphan
/**
* Returns the tooltip string that has been set with setToolTipText
* @return the text of the tool tip
*/
@Override
public String getToolTipText() {
if (mTextField == null){ // Necessary to avoid NPE when testing serialisation
return null;
}
return mTextField.getToolTipText();
}
代码示例来源:origin: org.tentackle/tentackle-swing
/**
* {@inheritDoc}
* <p>
* Overridden to show tooltip in tooltipdisplay OR via mouse
* but not both.
*/
@Override
public String getToolTipText() {
return getTooltipDisplay() == null ? super.getToolTipText() : null;
}
代码示例来源:origin: net.sf.squirrel-sql.plugins/firebirdmanager
jbuttonDatabaseDirectory.setIcon(FirebirdManagerHelper.loadIcon("fileopen16x16.png"));
jbuttonDatabaseDirectory.setEnabled(jtextfieldServer.getText().toUpperCase().trim().equals("LOCALHOST"));
jbuttonDatabaseDirectory.setToolTipText(jtextfieldDatabaseDirectory.getToolTipText());
jbuttonDatabaseDirectory.addActionListener(this);
jbuttonDatabaseDirectory.addKeyListener(this);
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* @return returns the element that is currently selected as the variable.
*/
public Object getVariable() {
String id = variable.getName();
String type = variable.getToolTipText();
if (type.equals("Attribute")) {
return aog.getMetaData().getAttributeName(id);
} else if (type.equals("Concept class")) {
return aog.getMetaData().getConceptClass(id);
} else if (type.equals("Relation type")) {
return aog.getMetaData().getRelationType(id);
} else if (type.equals("Feature")) {
return id;
} else {
return null;
}
}
代码示例来源:origin: net.sf.taverna.t2.ui-exts/perspective-biocatalogue
tfSearchQuery.getToolTipText());
this.bSearch.setIcon(ResourceManager.getImageIcon(ResourceManager.SEARCH_ICON));
this.add(bSearch, c);
代码示例来源:origin: net.anwiba.commons/anwiba-commons-swing-core
@Override
public String getToolTipText() {
final IToolTipFactory toolTipFactory = this.configuration.getToolTipFactory();
if (toolTipFactory == null) {
return super.getToolTipText();
}
final String value = getText();
final int columnWidth = getWidth();
final double valueWidth = JTextComponentUtilities.getValueWidth(this, value);
if (valueWidth > columnWidth - 2) {
return toolTipFactory.create(this.validationResult.get(), value);
}
return toolTipFactory.create(this.validationResult.get(), null);
}
}
代码示例来源:origin: org.tentackle/tentackle-swing
formWrapWindow = null;
showTooltip(super.getToolTipText());
内容来源于网络,如有侵权,请联系作者删除!