code: public void mouseReleased(MouseEvent e) {
          if (!hasFocus) {
              return;
          }
  
          boolean repaint = tabRowPainter.mouseReleased(e);
  
          if (!repaint) {
              repaint = toolbarPainter.mouseReleased(e);
          }
  
      }
docs: the event was consumed - DO NOT PAINT