code: protected void paint(SeaGlassContext context, Graphics g) {
          AbstractButton b = (AbstractButton) context.getComponent();
  
          g.setColor(context.getStyle().getColor(context, ColorType.TEXT_FOREGROUND));
          g.setFont(style.getFont(context));
          context.getStyle().getGraphicsUtils(context).paintText(context, g, b.getText(), getIcon(b), b.getHorizontalAlignment(),
                                                                 b.getVerticalAlignment(), b.getHorizontalTextPosition(),
                                                                 b.getVerticalTextPosition(), b.getIconTextGap(),
                                                                 b.getDisplayedMnemonicIndex(), getTextShiftOffset(context));
      }
docs: Paint the button.
  
  @param context the Synth context.
  @param g       the Graphics context.