本文整理了Java中javax.swing.JTree.getToolTipText()
方法的一些代码示例,展示了JTree.getToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.getToolTipText()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:getToolTipText
暂无
代码示例来源:origin: log4j/log4j
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: pmd/pmd
@Override
public String getToolTipText(MouseEvent e) {
if (getRowForLocation(e.getX(), e.getY()) == -1) {
return null;
}
TreePath curPath = getPathForLocation(e.getX(), e.getY());
if (curPath.getLastPathComponent() instanceof ASTTreeNode) {
return ((ASTTreeNode) curPath.getLastPathComponent()).getToolTipText();
} else {
return super.getToolTipText(e);
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: apache-log4j/log4j
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: org.apache/log4j
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: org.apache.activemq/activemq-all
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.log4j
public String getToolTipText(MouseEvent e) {
try {
return super.getToolTipText(e);
} catch (Exception ex) {
return "";
}
}
代码示例来源:origin: com.l2fprod.common/l2fprod-common-directorychooser
public String getToolTipText(MouseEvent event) {
String tip = WindowsDirectoryChooserUI.this.getToolTipText(event);
if (tip == null) {
return super.getToolTipText(event);
} else {
return tip;
}
}
};
代码示例来源:origin: net.sourceforge.pmd/pmd-core
@Override
public String getToolTipText(MouseEvent e) {
if (getRowForLocation(e.getX(), e.getY()) == -1) {
return null;
}
TreePath curPath = getPathForLocation(e.getX(), e.getY());
if (curPath.getLastPathComponent() instanceof ASTTreeNode) {
return ((ASTTreeNode) curPath.getLastPathComponent()).getToolTipText();
} else {
return super.getToolTipText(e);
}
}
代码示例来源:origin: icza/scelight
final String tip = super.getToolTipText( event );
if ( tip != null )
return tip;
代码示例来源:origin: icza/scelight
public Point getToolTipLocation( final MouseEvent event ) {
if ( super.getToolTipText( event ) != null )
return super.getToolTipLocation( event );
内容来源于网络,如有侵权,请联系作者删除!