code: protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
          int x = focusInsets.left;
          int y = focusInsets.top;
  
          width  -= focusInsets.left + focusInsets.right;
          height -= focusInsets.top + focusInsets.bottom;
  
          switch (state) {
  
          case BACKGROUND_DISABLED:
          case BACKGROUND_ENABLED:
          case BACKGROUND_SELECTED:
              paintBackground(g, c, x, y, width, height);
              break;
  
          case BORDER_DISABLED:
          case BORDER_ENABLED:
          case BORDER_FOCUSED:
              paintBorder(g, c, x, y, width, height);
              break;
          }
      }
docs: {@inheritDoc}