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

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

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

JTree.addMouseMotionListener介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-explorer

@Override
protected void startEditingTimer() {
  tree.addMouseMotionListener(this);
  super.startEditingTimer();
}

代码示例来源:origin: info.aduna.commons/aduna-commons-swing

public TreeOverlay(JTree tree) {
  this.tree = tree;
  tree.addMouseListener(this);
  tree.addMouseMotionListener(this);
}

代码示例来源:origin: org.biomoby/taverna-biomoby

public OverlayListener(JTree tree) {
  this.tree = tree;
  tree.addMouseListener(this);
  tree.addMouseMotionListener(this);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

protected void startEditingTimer () {
  tree.addMouseMotionListener (this);
  super.startEditingTimer ();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

protected void startEditingTimer () {
  tree.addMouseMotionListener (this);
  super.startEditingTimer ();
}

代码示例来源:origin: org.nuiton/nuiton-widgets

/**
 * Enable data tips for a tree component.
 * @param tree the tree which should be enhanced with data tips.
 */
public synchronized void register(JTree tree) {
  tree.addMouseListener(treeMouseListener);
  tree.addMouseMotionListener(treeMouseListener);
  tree.addComponentListener(treeMouseListener);
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra

/**
 * Enable data tips for a tree component.
 *
 * @param tree the tree which should be enhanced with data tips.
 */
public synchronized void register(JTree tree) {
  tree.addMouseListener(treeMouseListener);
  tree.addMouseMotionListener(treeMouseListener);
  tree.addComponentListener(treeMouseListener);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-inspect

/**
 * Initializes the tree view.
 */
private void initTreeView() {
  treeView = new BeanTreeView() {
    {
      MouseAdapter listener = createTreeMouseListener();
      tree.addMouseListener(listener);
      tree.addMouseMotionListener(listener);
      tree.setCellRenderer(createTreeCellRenderer(tree.getCellRenderer()));
    }
  };
  treeView.setAllowedDragActions(DnDConstants.ACTION_NONE);
  treeView.setAllowedDropActions(DnDConstants.ACTION_NONE);
  treeView.setRootVisible(false);
}

代码示例来源:origin: net.imagej/ij

pTree.addMouseMotionListener(new MouseMotionAdapter()

代码示例来源:origin: imagej/ImageJA

pTree.addMouseMotionListener(new MouseMotionAdapter()

代码示例来源:origin: sdedit/sdedit

public AdvancedHelpPanel(URL url, HyperlinkListener listener) {
  init();
  this.url = url.toString();
  anchorMap = new HashMap<String, DefaultMutableTreeNode>();
  try {
    readAnchors(url);
    editorPane.setPage(url);
  } catch (RuntimeException re) {
    throw re;
  } catch (IOException e) {
    e.printStackTrace();
  }
  navigatorModel.nodeStructureChanged(navigatorRoot);
  expandNavigator();
  navigator.addMouseListener(this);
  navigator.addMouseMotionListener(this);
  editorPane.addHyperlinkListener(new Browser());
  editorPane.addHyperlinkListener(listener);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-inspect

tree.addMouseMotionListener(listener);
tree.setCellRenderer(createTreeCellRenderer(tree.getCellRenderer()));

代码示例来源:origin: org.java.net.substance/substance

this.tree.addMouseMotionListener(this.substanceFadeRolloverListener);
this.tree.addMouseListener(this.substanceFadeRolloverListener);

代码示例来源:origin: com.github.insubstantial/substance

this.tree.addMouseMotionListener(this.substanceFadeRolloverListener);
this.tree.addMouseListener(this.substanceFadeRolloverListener);

相关文章

JTree类方法