Examples of ExpandTreeNodeAction


Examples of fr.soleil.gumtreeexplorer.util.ExpandTreeNodeAction

    tree = new JXTree();

    // action to expand a node and all its children
    final InputMap treeInputMap = tree.getInputMap(JComponent.WHEN_FOCUSED);
    treeInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_MULTIPLY, 0), "MultPressed");
    tree.getActionMap().put("MultPressed", new ExpandTreeNodeAction(tree));

    GumTreeNode rootNode = new GumTreeNode("Root");
    treeModel = new DefaultTreeModel(rootNode, false);
    tree.setModel(treeModel);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.