There is only an inactive foreground. If you want an inactive background,
you have to create your own UI.
TextField.background
TextField.border
TextField.caretBlinkRate
TextField.caretForeground
TextField.focusInputMap
TextField.font
TextField.foreground
TextField.inactiveForeground
TextField.keyBindings
TextField.margin
TextField.selectionBackground
TextField.selectionForeground
At 11:19 AM 3/28/2001 +0800, Wayne Elliott wrote:
>I was able to get some changes using code like the following in the main
>application class.
>
> UIDefaults defaults = UIManager.getDefaults();
> defaults.put("TextField.foreground", new ColorUIResource(128, 0, 0));
> defaults.put("TextField.background", new ColorUIResource(255, 255,
>255));
> defaults.put("ComboBox.foreground", new ColorUIResource(0, 0, 0));
> defaults.put("ComboBox.disabledForeground", new ColorUIResource(80,
>80, 80));
> defaults.put("ComboBox.background", new ColorUIResource(255, 128,
>128));
> defaults.put("Label.foreground", new ColorUIResource(0,128,0));
> defaults.put("Label.disabledForeground", new
>ColorUIResource(0,128,128));
>
>
>What I was unable to do was to define a different background color for
>a textfield when it is disabled. There does not appear to be a
>differentiation
>in UIDefaults. I tried setting "TextField.inactiveBackground" and
>"TextField.disabledBackground" but no potato.
>
>Am I looking in the wrong place?
>
>WPE
>_______________________________________________
>Advanced-swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/advanced-swing
John Zukowski, Strategic Java Consulting
JZ Ventures, Inc. - http://www.jzventures.com
http://www.jGuru.com -- Your view of the Java Universe
The limits of my language are the limits of my world. - Wittgenstein
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing