code: public void mouseReleased(MouseEvent event)
      {
          lastClick = 0;
  
          final int button = event.getClick();
          clicks[button] = false;
          clicked[button] = false;
      }
docs: Called on mouse released.
  
  @param event The associated event.