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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by trebligd, Tue Sep 27 21:51:50 2005 UTC revision 1.2 by trebligd, Wed Sep 28 14:38:33 2005 UTC
# Line 72  class MetalButtonListener extends BasicB Line 72  class MetalButtonListener extends BasicB
72      super.propertyChange(e);      super.propertyChange(e);
73      if (e.getPropertyName().equals(      if (e.getPropertyName().equals(
74              AbstractButton.ROLLOVER_ENABLED_CHANGED_PROPERTY))              AbstractButton.ROLLOVER_ENABLED_CHANGED_PROPERTY))
75      {        {
76        AbstractButton b = (AbstractButton) e.getSource();          AbstractButton b = (AbstractButton) e.getSource();
77        if (b.getBorder() instanceof UIResource)          if (b.getBorder() instanceof UIResource)
78          b.setBorder(MetalBorders.getRolloverBorder());            {
79      }              if (Boolean.TRUE.equals(e.getNewValue()))
80                  b.setBorder(MetalBorders.getRolloverBorder());
81                else if (Boolean.FALSE.equals(e.getNewValue()))
82                  b.setBorder(MetalBorders.getButtonBorder());
83              }
84          }
85    }    }
86  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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