Skip to main content

JXTitledPanel restores border after LAF change

4 replies [Last post]
qstorm
Offline
Joined: 2006-08-29

Hi,
The JXTitledPanel restores their border after the LAF has been changed (at runtime).
Background: I will not have the shadow border. So I change the border to the line border:

titledPanel.setBorder(newLineBorder(titledPanel.getBackground());

This works fine. But If the LAF changed at runtime, the border will be restore automatically.
Is this an bug? How can I fix this?

Thanks

BR,
QStorm

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kleopatra
Offline
Joined: 2003-06-11

should be fixed (Hudson has a hangover again, busy weekend ), so only way to get it is by cvs checkout

Cheers
Jeanette

kleopatra
Offline
Joined: 2003-06-11

sounds like a bug to me, the uidelegate should set the border only if null or a UIResource, it does so always. A quick hack is to subclass and override updateUI to set your custom border after calling super.

Would you please file an issue in the swingx issue tracker?

Thanks
Jeanette

qstorm
Offline
Joined: 2006-08-29

OK, done :)

BTW: The issue tracker need some "subcomponent" categories like "JXTitledPanel".

BR,
Steven

kleopatra
Offline
Joined: 2003-06-11

> OK, done :)
>
> BTW: The issue tracker need some "subcomponent"
> categories like "JXTitledPanel".
>

well, we didn't want to overdo it with categories for components that couldn't possibly gone wrong For those we have the "misc components", which is documented as

"Issues related to all components without specific category."

Thanks for filing!
Jeanette