This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug AWT/16680] New: TextField colours and setEditable() do not work correctly


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]