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.

Bug 25915 - Look & Feel defect
Summary: Look & Feel defect
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: L&F
Depends on:
Blocks:
 
Reported: 2002-07-23 12:22 UTC by Søren Caspersen
Modified: 2008-12-22 18:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shots of the problem before and after fix (162.76 KB, application/zip)
2002-07-23 20:55 UTC, Søren Caspersen
Details
a small example (1.85 KB, text/plain)
2002-08-02 09:54 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Søren Caspersen 2002-07-23 12:22:23 UTC
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
Comment 1 Jiri Rechtacek 2002-07-23 17:21:49 UTC
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
Comment 2 Søren Caspersen 2002-07-23 20:55:41 UTC
Created attachment 6866 [details]
Screen shots of the problem before and after fix
Comment 3 Søren Caspersen 2002-07-23 21:03:59 UTC
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
Comment 4 Jiri Rechtacek 2002-07-31 15:32:39 UTC
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
Comment 5 Søren Caspersen 2002-07-31 20:22:43 UTC
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
Comment 6 Jiri Rechtacek 2002-08-02 09:52:56 UTC
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
Comment 7 Jiri Rechtacek 2002-08-02 09:54:02 UTC
Created attachment 6990 [details]
a small example
Comment 8 Søren Caspersen 2002-08-02 13:16:29 UTC
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
Comment 9 Marian Mirilovic 2003-07-28 13:45:02 UTC
Without new informations for long time - verifying.