[3519] in java-interest
Q about TextField background
daemon@ATHENA.MIT.EDU (pfu.fujitsu.co.jp!shira@fujitsuI.f)
Wed Nov 15 05:12:13 1995
From: pfu.fujitsu.co.jp!shira@fujitsuI.fujitsu.com
To: java-interest@java.Eng.Sun.COM
Date: Fri, 15 Dec 1995 14:57:44 JST
I have a question about background color of TextField.
I'd like to set certain color to TextField as background.
But when the TextField is editable, the color actually set
seems to be brighter than that I specified.
Following program set "white" for editable TextField background.
TextField textField = new TextField(30);
textField.setEditable(true);
textField.setBackground(Color.lightGray); // be white
So, I have to write like:
if (textField.isEditable()) {
textField.setColor(new Color(141, 141, 141)); // be lightGray
} else {
textField.setColor(new Color(192, 192, 192)); // lightGray
}
Is it a feature?
I'm using JDK beta on Solaris 2.4 if it helps.
Thank you.
--
Kazuhisa SHIRAKAMI (shira@pfu.fujitsu.co.jp)
PFU Limited. Tokyo, Japan.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com