This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16680] New: TextField colours and setEditable() do not work correctly
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2004 23:58:58 -0000
- Subject: [Bug AWT/16680] New: TextField colours and setEditable() do not work correctly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following test case should create a colourful TextField that is not
editable. However, the foreground and background colours do not get set
correctly, and the text field remains editable.
import java.awt.*;
public class TextTest
{
public static void main(String[] args)
{
Frame f = new Frame("Text test");
TextField tf = new TextField("Hello");
tf.setEditable(false);
tf.setForeground(Color.BLUE);
tf.setBackground(Color.PINK);
tf.setColumns(40);
f.add(tf);
f.pack();
f.setVisible(true);
}
}
--
Summary: TextField colours and setEditable() do not work
correctly
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: AWT
AssignedTo: fitzsim at redhat dot com
ReportedBy: mckinlay at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16680