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

Omair Majid omajid at redhat.com
Thu Jan 22 18:46:27 UTC 2009


Hi Kirill,

Kirill Kirichenko wrote:
> 
> 
> 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.

Thanks. That clears up things.

Cheers,

Omair



More information about the swing-dev mailing list