code: protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
          switch (state) {
          case FIND_ICON_ENABLED:
              paintSearchGlass(g, 0, 0, width, height, false);
              break;
          case FIND_ICON_ENABLED_POPUP:
              paintSearchGlass(g, 0, 0, width, height, true);
              break;
          case CANCEL_ICON_ENABLED:
              paintCancelIcon(g, 0, 0, width, height, cancelIconColor);
              break;
          case CANCEL_ICON_PRESSED:
              paintCancelIcon(g, 0, 0, width, height, cancelIconPressedColor);
              break;
          }
      }
docs: {@inheritDoc}