- java.lang.Object
-
- com.iamsoft.util.ui.swing.JTreeUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
expandNodesOnTreeUpdate(JTree pTree)
When tree is heavily modified, expand all nodes.static void
expandTreeNodes(JTree pTree)
Expand all tree nodes.static void
setRenderer(JTree pTree, TreeCellRenderer pRenderer)
Sets tree cell renderer without destroying tree selection and expansion state.static int[]
toPrimitiveArray(Collection<Integer> pCollection)
-
-
-
Method Detail
-
setRenderer
public static void setRenderer(JTree pTree, TreeCellRenderer pRenderer)
Sets tree cell renderer without destroying tree selection and expansion state.
-
expandNodesOnTreeUpdate
public static void expandNodesOnTreeUpdate(JTree pTree)
When tree is heavily modified, expand all nodes.
-
expandTreeNodes
public static void expandTreeNodes(JTree pTree)
Expand all tree nodes.
-
toPrimitiveArray
public static int[] toPrimitiveArray(Collection<Integer> pCollection)
-
-