javax.swing.JTree.getToolTipText()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中javax.swing.JTree.getToolTipText()方法的一些代码示例,展示了JTree.getToolTipText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.getToolTipText()方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:getToolTipText

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 );

相关文章

JTree类方法