This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When displaying a node hierachi using org/openide/explorer/view/ListView the font is wrong when using a Look & Feel different that NB's default. Proposed fix: setFont(UIManager.getFont("List.font")); inserted at line 301 of org/openide/explorer/view/NodeRenderer.java
Hi, thank you for proposal. I tried change NodeRenderer by proposal but the nodes in ExecutionWindow (based on ListView) were not visible. I set L&F on motif in jdk1.3.1 on Gnome/Linux. Have you seen something like this too? Could you add the screenshots with layout before and after your fix. I try play with it more. Thanks for feedback. -jiri
Created attachment 6866 [details] Screen shots of the problem before and after fix
Hi Jiri, I've attached screenshots before and after the fix. The problem is the bold font in the ListView of the Execution window and the ListView "Porteføljer:". The problem seems limited to Metal-based LookAndFeels, Windows and Motif LookAndFeels work fine. I suspect this is because of the bold labels in Metal. I've tested Motif but I can't reproduce your problem (JDK1.3.1, Win2K)? Søren
Hi Søren, the bolds fonts in ListView (based on JList) are derived from Metal l&f. ListView should be consistent with JList so I won't fix it. I hope for understanding, -jiri
Hej Jiri, But that was my point:-) ListView does NOT conform with JList. JList with Metal l&f use plain font, while ListView in Metal use bold font. Try to fire the IDE up with "-ui javax.swing.plaf.metal.MetalLookAndFeel". ListViews then have bold fonts which does not conform with Metal JList. Søren
Hi, I tried add a JList in JFrame outside IDE with javax.swing.plaf.metal.MetalLookAndFeel and the font in JList was bold. I assumed it was excepted. I used Sun's jdk1.4.1. Look on attached example. -jiri
Created attachment 6990 [details] a small example
Hi Jiri, I tried your example on JDK1.3.1 and the font is plain. I also tested it on SDK1.4.0_01 where the font was bold. I was not aware that they changed the l&f in 1.4. (I liked 1.3.1 better, JTreeView and JList view should have the same font don't you think :-) But this is the problem exactly. ListView does not not pick up on l&f settings. Your rendere use JLable and in 1.4 you are lucky that JLable and JList use the same font (color etc.). You may not be this lucky with other l&f which Metal in 1.3.1 is a perfect example of. Søren
Without new informations for long time - verifying.