void (Graphics g2d, JComponent c) { Graphics2D g = (Graphics2D)g2d; AbstractButton button = (AbstractButton)c; AbstractButtonLayout layout = createLayout(button, button.getSize()); layout.paint(g, getDisabledTextColor(), getMnemonicIndex(button)); paintFocus(button, g, layout.textRect); paintIcon(c, g, layout.iconRect); }