[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: tree expand/collapse
From: |
Lillian Angel |
Subject: |
[cp-patches] Patch: tree expand/collapse |
Date: |
Mon, 15 Aug 2005 14:30:31 -0400 |
Took out redundant code in BasicTreeUI and placed in JTree. This works
better for expanding/collapsing a path. The events are automatically
fired from the source and do not need to be fired every time expandPath
or collapsePath is called from another class.
2005-08-15 Lillian Angel <address@hidden>
* javax/swing/JTree.java
(expandPath): called fireTreeWillExpand and fireTreeExpanded
since it is not required that the calling class fires these
events.
(collapsePath): Likewise.
* javax/swing/plaf/basic/BasicTreeUI.java
(mouseClicked): Took out code that called fireTreeWillExpand/
fireTreeWillCollapse and fireTreeExpanded/fireTreeCollapsed.
(keyPressed): Likewise.
patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: tree expand/collapse,
Lillian Angel <=