void (Component c, Graphics g, int x, int y) { Rectangle rect = new Rectangle(getIconWidth() + 2*x, getIconHeight() + 2*x); ActionButtonLook.SYSTEM_LOOK.paintLookBackground(g, rect, hoverBackground()); ActionButtonLook.SYSTEM_LOOK.paintLookBorder(g, rect, hoverBorder()); myIcon.paintIcon(c, g, x + (getIconWidth() - myIcon.getIconWidth())/2, y + (getIconHeight() - myIcon.getIconHeight())/2); }