Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4965399
Votes 0
Synopsis Can not set color for JButton.
Category java:classes_swing
Reported Against tiger-beta
Release Fixed
State 11-Closed, duplicate of 4908404, bug
Priority: 4-Low
Related Bugs 4908404
Submit Date 09-DEC-2003
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


  xxxxx@xxxxx   2003-12-08
Work Around
N/A
Evaluation
This is a duplicate of 4908404, refer to it for details.
  xxxxx@xxxxx   2003-12-09
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang