Package fr.soleil.gumtreeexplorer.util

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

Related Classes of fr.soleil.gumtreeexplorer.util.ExpandTreeNodeAction

Copyright © 2018 www.massapicom. 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.