public class JTreeUtil extends Object
| Constructor and Description |
|---|
JTreeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<DefaultMutableTreeNode> |
children(DefaultMutableTreeNode node) |
static void |
copyChildrenTo(DefaultMutableTreeNode from,
DefaultMutableTreeNode to) |
static DefaultMutableTreeNode |
copyNode(DefaultMutableTreeNode oldNode) |
static void |
setNodeExpandedState(JTree tree,
DefaultMutableTreeNode node,
boolean expanded) |
static void |
setTreeExpandedState(JTree tree,
boolean expanded) |
public static void setTreeExpandedState(JTree tree, boolean expanded)
public static void setNodeExpandedState(JTree tree, DefaultMutableTreeNode node, boolean expanded)
public static DefaultMutableTreeNode copyNode(DefaultMutableTreeNode oldNode)
public static void copyChildrenTo(DefaultMutableTreeNode from, DefaultMutableTreeNode to)
public static List<DefaultMutableTreeNode> children(DefaultMutableTreeNode node)
Copyright © 2022 vpc open source initiative. All rights reserved.