> I think a better solution is to override getForeground / getBackground
> of the component to return something related to it's parents?

So now you have to override all the gui components just to override one
method?  I would think that would be a lot of work for very little gain,
not to mention it would add unnecessary bulk to your app, don't you think?

> renderer does not call getForeground but directly grabs it from a member
> variable, this won't work. What you could do is override paint() to set

Everything that descends from component inherits
setBackground/getBackground and setForeground/getForeground.  I don't know
off the top of my head, of any components in the java libraries that
ignore those properties.



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to