> When writing gui apps, most of the time i have to override most of the
> components anyway, except for generic items such as buttons. But this is
> the only way i see to implement color themes, because it works when you
> add/remove components dynamically. The recursive setColor won't work in
> that case (although it is probably the simplest / fastest solution for
> the static case).
If all you are doing is changing the look of already existing components,
you should be using PLAFs, not extending the components, thereby breaking
PLAF.
> If you look at the java.awt source, the toolkits, layout managers, etc.
> use component.x values instead of component.getX(). I don't know if it
> is the same with other member variables (such as foreground /
> background) . The thing i was worried about is that if the java.awt
> classes directly access the member variables, then overriding the
> functions won't do any good...
In the case of colors anyway, they use the get methods, I believe, because
I have written things that override those before and they worked fine.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]