[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: JTree null root fix
From: |
Lillian Angel |
Subject: |
[cp-patches] Patch: JTree null root fix |
Date: |
Tue, 20 Dec 2005 16:35:15 -0500 |
For some reason, an exception was being thrown for a null root. It is
legal to set the root of a tree to null. This is now fixed. I took out
some revalidate calls that were not needed.
2005-12-20 Lillian Angel <address@hidden>
* javax/swing/plaf/basic/BasicTreeUI.java
(pathWasExpanded): Removed unneeded revalidate call.
(pathWasCollapsed): Likewise.
(installUI): Fixed to check for null root.
(paint): Fixed to always update path.
(toggleExpandState): Removed call to update path.
(editingStopped): Likewise.
(editingCanceled): Likewise.
(treeStructureChanged): Likewise.
(treeExpanded): Likewise.
(treeCollapsed): Likewise.
(treeNodesChanged): Likewise.
(treeNodesInserted): Likewise.
(treeNodesRemoved): Likewise.
(updateCurrentVisiblePath): Added check for null root. If root
is null, nothing should be painted or in the path.
* javax/swing/tree/DefaultTreeModel.java
(setRoot): Root can be null.
patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: JTree null root fix,
Lillian Angel <=