return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton)
Border b = UIManager.getBorder("ToolBar.rolloverBorder");  if (b == null)
  protected Border createRolloverBorder()  {    return new EtchedBorder()      {	public void paintBorder(Component c, Graphics g, int x, int y,	                        int width, int height)	{	  if (c instanceof JButton)	    {	      if (((JButton) c).getModel().isRollover())		super.paintBorder(c, g, x, y, width, height);	    }	}      };  }