Parent Directory | Revision Log | Patch
revision 1.9 by langel, Thu Nov 3 16:15:38 2005 UTC | revision 1.10 by langel, Mon Nov 7 18:26:50 2005 UTC | |
---|---|---|
# | Line 192 public class MetalButtonUI | Line 192 public class MetalButtonUI |
192 | */ | */ |
193 | protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, | protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, |
194 | Rectangle textRect, Rectangle iconRect) { | Rectangle textRect, Rectangle iconRect) { |
195 | if (b.hasFocus() && b.isFocusPainted()) | if (b.isEnabled() && b.hasFocus() && b.isFocusPainted()) |
196 | { | { |
197 | Color savedColor = g.getColor(); | Color savedColor = g.getColor(); |
198 | g.setColor(getFocusColor()); | g.setColor(getFocusColor()); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |