java.lang.Object
com.iamsoft.util.ui.swing.JTreeUtil
Utility methods for working with JTree.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidexpandNodesOnTreeUpdate(JTree pTree) When tree is heavily modified, expand all nodes.static voidexpandTreeNodes(JTree pTree) Expand all tree nodes.static voidsetRenderer(JTree pTree, TreeCellRenderer pRenderer) Sets tree cell renderer without destroying tree selection and expansion state.static int[]toPrimitiveArray(Collection<Integer> pCollection)
-
Method Details
-
setRenderer
Sets tree cell renderer without destroying tree selection and expansion state. -
expandNodesOnTreeUpdate
When tree is heavily modified, expand all nodes. -
expandTreeNodes
Expand all tree nodes. -
toPrimitiveArray
-