/[classpath]/classpath/javax/swing/plaf/metal/MetalButtonUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalButtonUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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());

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26