-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.1.6
-
generic
-
generic
Name: mf23781 Date: 06/19/98
We cannot add nodes to a Swing JTree node dynamically at
runtime. Jtree does not provide a method that is called before a node is expanded to display its children. There is a need to be able to manage/alter a nodes children, and select the children for display at the time the user clicks the node handle(The plus sign in the basic U/I).
Using the TreeCellExpanded event is insufficient as this event is sent after the cell has been expanded and all children painted.
Perhaps a TreeCellAboutExpand event or method needs added. This needs to be added to the Swing JTree design.
======================================================================
- duplicates
-
JDK-4137468 JTree needs treeWillExpand and treeWillCollapse event methods
-
- Resolved
-