[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: MetalIconFactory.RadioButtonIcon
From: |
David Gilbert |
Subject: |
[cp-patches] FYI: MetalIconFactory.RadioButtonIcon |
Date: |
Fri, 16 Sep 2005 10:20:09 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050728) |
I committed this patch to change the color of the selection indicator when the
JRadioButton is disabled:
2005-09-16 David Gilbert <address@hidden>
* 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: MetalIconFactory.RadioButtonIcon,
David Gilbert <=