JDK-5043228 : GTK L&F: Cannot set background color on JRadioButton
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2004-05-06
  • Updated: 2004-05-10
  • Resolved: 2004-05-10
Related Reports
Duplicate :  
Description
Calling setBackground() on a JRadioButton sets the background of the circle in which the dot appears, but not the background of the component itself.  This causes problems when a JRadioButton is used as a table cell renderer.

See attached demo app (a NetBeans project - unzip and run "ant run" to build and run it) - it will show a frame, then on a timer, set the colors of all components in the frame, then do so again, also setting the selected state of all AbstractButtons in the frame.

(This issue originally intended to be part of bug 4997237 which has been closed)

Comments
EVALUATION Closing as duplicate of 5043225 as they are the same problem. ###@###.### 2004-05-10 If you invoke setOpaque9^H9true), you'll see the expected background color. ###@###.### 2004-05-10
10-05-2004