if (e.getPropertyName().equals( AbstractButton.ROLLOVER_ENABLED_CHANGED_PROPERTY)) { AbstractButton b = (AbstractButton) e.getSource(); if (b.getBorder() instanceof UIResource) { if (Boolean.TRUE.equals(e.getNewValue())) b.setBorder(MetalBorders.getRolloverBorder()); else if (Boolean.FALSE.equals(e.getNewValue())) b.setBorder(MetalBorders.getButtonBorder()); } }
  public void propertyChange(PropertyChangeEvent e)  {    super.propertyChange(e);    if (e.getPropertyName().equals(            AbstractButton.ROLLOVER_ENABLED_CHANGED_PROPERTY))      {        AbstractButton b = (AbstractButton) e.getSource();        if (b.getBorder() instanceof UIResource)          {            if (Boolean.TRUE.equals(e.getNewValue()))              b.setBorder(MetalBorders.getRolloverBorder());            else if (Boolean.FALSE.equals(e.getNewValue()))              b.setBorder(MetalBorders.getButtonBorder());          }      }  }