> Check whether the resources you use in your LnF
> implement the UIResource marker interface.
> This interface indicates whether a new LnF
> can replace an existing border, color, inset,
> etc or keeps it because it's a custom resource.
> Also, there are a couple of problems when switching
> a look-and-feel at runtime. I've worked around
> a bunch of them but in general I recommend to
> not switch the look at runtime.
>
> Karsten
Thanks for your help Karsten, I will take
a look at UIResource.
It is a pity that it does not work smoother
when switching from different LnFs. Hopefully
it will be improved in future release of Java.
I have taken a look at other custom LnFs and
it doesn't seem that any LnF manages to switch
in realtime without any hassle.
I'll skip this feature for now.
Robert
Karsten Lentzsch - 06 Apr 2004 10:33 GMT
> I have taken a look at other custom LnFs and
> it doesn't seem that any LnF manages to switch
> in realtime without any hassle.
Mmh, at least you should be able to switch
from the JGoodies LnFs to other LnFs properly
- if you had no other LnF activated before.
I've taken care of all UI delegates to obey
the Swing LnF rules. You can check that in
my tools and demos, for example JDiskReport:
http://www.jgoodies.com/freeware/jdiskreport/
- Karsten
Robert Karlsson - 06 Apr 2004 18:20 GMT
>> I have taken a look at other custom LnFs and
>> it doesn't seem that any LnF manages to switch
[quoted text clipped - 10 lines]
>
> - Karsten
JGoodies LnF are to my knowledge one of the
LnFs that runs most smoothly.
Hopefully my HippoLF will improve over time :-)
It was a typo in my previous mail, I meant to
say that "it doesn't seem that *many* LnF
manages to switch in realtime without any hassle",
not any. My mistake :-/
.:. Robert