How to use "undocumented secret" Swing properties
Posted by kirillcool on August 16, 2005 at 6:59 AM EDT
A spurious outburst of "undocumented secret" features of Swing keep popping up lately. The word "undocumented" seems to imply that no official Java documentation on Sun mentions them, and it's only after hours of poring over the JDK code the authors finally distilled these gems. Let's start then?- swing.defaultlaf that sets the default look and feel is well documented in UIManager javadocs. The fact that most of Java applications are unaware that they should check this setting before installing their own doesn't mean that this property is undocumented.
- JTree.lineStyle for line style in Metal JTree appears not only in javadocs for MetalTreeUI, but also in (rather outdated) Sun tutorial on using trees.
- swing.boldMetal for bold font settings in controls appears proudly in javadocs for MetalLookAndFeel
- JToolBar.isRollover for rollover effects in toolbars appears in twelve bugs on bugparade and on 460+ entries on Yahoo search.
Blog Links >>
- Login or register to post comments
- Printer-friendly version
- kirillcool's blog
- 2021 reads





