Skip to main content

A bad code in org.jdesktop.swingx.plaf.HeaderAddon.

4 replies [Last post]
theface
Offline
Joined: 2005-09-18
Points: 0

I think this bug should be to fix(at line 57 of type org.jdesktop.swingx.plaf.HeaderAddon).
old code:
defaults.add("JXHeader.descriptionFont", UIManager.getFont("Label.font"));
,should be change to:
defaults.add("JXHeader.descriptionFont", new FontUIResource(UIManager.getFont("Label.font")));

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08
Points: 0

There is a TODO comment there for using the getSafeXXX methods. We should do that.

Can you file a bug, so we do not forget to update the addon with the safe methods?

Karl

theface
Offline
Joined: 2005-09-18
Points: 0

Sorry for my post.

I checked again,The code works fine now,I don't remember why change this code,maybe throw NPE when use substance for my app,but I am not using substance now,cannot testing again.
Pls delete this post,sorry for my broken english.

kleopatra
Offline
Joined: 2003-06-11
Points: 0

why?

Jeanette

martinm1000
Offline
Joined: 2003-06-12
Points: 0

That has to be the smallest reply I have seen from Jeanette ;-)