[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: JTree row height fix
From: |
Lillian Angel |
Subject: |
[cp-patches] Patch: JTree row height fix |
Date: |
Mon, 09 Jan 2006 13:43:40 -0500 |
Riccardo pointed out some problems with JTree when the icons are larger
than the row height. I fixed it so the tree uses the max row height of
all the nodes.
2006-01-09 Lillian Angel <address@hidden>
* javax/swing/plaf/basic/BasicTreeUI.java:
Added new field.
(setRowHeight): Row height is set to the max height of
all the nodes, or 20 as a default value.
(getPathBounds): Cleaned up code.
(getMaxHeight): New helper function that gets the max
height of all the rows.
(getClosestPathForLocation): Fixed to use getMaxHeight.
(updateCachedPreferredSize): Likewise.
(installUI): Shouldn't expand tree on startup.
(getNodeDimensions): Fixed to use getMaxHeight.
patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: JTree row height fix,
Lillian Angel <=