[cp-patches] FYI: GNU L&F handling fix for JTree.

Audrius Meskauskas audriusa at bluewin.ch
Sat May 6 22:35:59 UTC 2006


This patch fixes JTree L&F. Indeed, this L&F provides no control icons - 
these should not be painted. The path also includes the handling of the 
L&F switching in general.

2006-05-07  Audrius Meskauskas  <AudriusA at Bioinformatics.org>

    * javax/swing/plaf/basic/BasicTreeUI.java (NodeDimensionsHandler.
    getNodeDimensions): Mind the size of the node icon. (getRowX):
    use totalChildIndent. (TreeExpansionHandler): Set maximal height
    to zero on events. (nullIcon): New field. (getCurrentControlIcon):
    Return nullIcon if there is no other icon. (getNodeIcon): New method.
    (installDefaults): assign totalChildIndent. (installUI): Call
    updateExpandedDescendants. (paintHorizontalPartOfLeg): Rewritten.
    (paintRow): Rewritten. (updateRenderer): Do not set the renderer for
    the tree.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GNULF.patch
Type: text/x-patch
Size: 6595 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060507/1ff998a8/GNULF.bin


More information about the Classpath-patches mailing list