JDK-4965399 : Can not set color for JButton.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2003-12-09
  • Updated: 2003-12-09
  • Resolved: 2003-12-09
Related Reports
Duplicate :  
Description
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

Comments
EVALUATION This is a duplicate of 4908404, refer to it for details. ###@###.### 2003-12-09
09-12-2003