<Swing Dev> Background/Foreground colors and Gtk Look and Feel

Kirill Kirichenko Kirill.Kirichenko at Sun.COM
Thu Jan 22 15:58:45 UTC 2009



Omair Majid wrote:
> So the _correct_ behaviour is that setBackground()/setForeground() are 
> ignored completely? So if a component actually responds to 
> setBackground() or setForeground(), it's a bug?
It's not a bug. It just happens to be so. I mean you shouldn't count on 
this. Altering colors in GTK L&F rather than in the theme config file is 
not supported.

> I am still a little confused. If closed source jdk allows setting the 
> background, and openjdk doesn't, doesn't that mean openjdk is correct 
> and the fixes should be applied to the closed source jdk? Basically, I 
> am asking what the ideal behaviour should be. Should 
> setBackground()/setForeground() have any effect when using the gtk look 
> and feel?
No they shouldn't.



More information about the swing-dev mailing list