I committed this patch to change the color of the selection indicator when the
JRadioButton is disabled:
2005-09-16 David Gilbert <[EMAIL PROTECTED]>
* javax/swing/plaf/metal/MetalIconFactory.java
(RadioButtonIcon.paintIcon): change color of selection indicator
according to component state.
Regards,
Dave
Index: javax/swing/plaf/metal/MetalIconFactory.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalIconFactory.java,v
retrieving revision 1.14
diff -u -r1.14 MetalIconFactory.java
--- javax/swing/plaf/metal/MetalIconFactory.java 14 Sep 2005 11:54:08
-0000 1.14
+++ javax/swing/plaf/metal/MetalIconFactory.java 16 Sep 2005 09:13:42
-0000
@@ -832,7 +832,10 @@
if (b.isSelected())
{
- g.setColor(MetalLookAndFeel.getBlack());
+ if (b.isEnabled())
+ g.setColor(MetalLookAndFeel.getBlack());
+ else
+ g.setColor(MetalLookAndFeel.getControlDisabled());
g.drawLine(x + 4, y + 3, x + 7, y + 3);
g.fillRect(x + 3, y + 4, 6, 4);
g.drawLine(x + 4, y + 8, x + 7, y + 8);
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches