Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4965399

Can not set color for JButton.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs

      OS: solaris/win2000 (maybe others)
      jdk 1.5.0 build 30

      The following code doesn't work
       JButton but = new JButton("B1");
       but.setBackground(Color.red); // can't set the color.

      Sample code is attached.

      ---------------------------------------------
      This code used to work for build 1.4.2-rc-b20


      ###@###.### 2003-12-08

            svioletsunw Scott Violet (Inactive)
            dvolodarsunw Dina Volodarskaya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: