<Swing Dev> Background/Foreground colors and Gtk Look and Feel
Joel Uckelman
uckelman at nomic.net
Wed Jun 10 15:56:37 UTC 2009
Thus spake Stijn Debruyckere:
>
> Hi,
>
> Continuing the discussion of Jan 22, 2009, people seem to think there is
> no need to adapt the foreground/background colors of say a text field.
> But how about validation? For example, the background of the 'find'
> text field of Firefox colors red when the text can't be found. As far
> as I know, this simple yet powerful feature can't be implemented in
> Swing if one wants to support multiple look&feels, such as GTK or Nimbus
> (as setBackground is ignored).
>
The discussion to which you refer is one I started. At that point, no one
was able to say how it's possible to build complex Swing widgets and get
the right colors simultaneously, when using LAFs (like GTK) where
setBackground is ignored. If someone can provide an answer now, I'd be
grateful for it.
--
J.
More information about the swing-dev
mailing list