code: protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
          g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  
          switch (state) {
  
          case ENABLED:
              drawEnabledGraphic(g, width, height);
              break;
  
          case MOUSEOVER:
              drawBorder(g, width, height, borderMouseOver, 0.4f);
              drawOverlayGraphic(g, width, height);
              break;
  
          case FOCUSED:
              drawBorder(g, width, height, borderFocused, 0.4f);
              drawOverlayGraphic(g, width, height);
              break;
  
          case PRESSED:
              drawBorder(g, width, height, borderPressed, 0.5f);
              drawOverlayGraphic(g, width, height);
              break;
          }
      }
docs: {@inheritDoc}