Java Double-click Events

Created 04 October 2001 00:00
  private class YourMouseListener extends MouseAdapter {

    public void mouseClicked(MouseEvent event) {
      Object object = event.getSource();
      //Perform actions on double-click events
      if (event.getClickCount() == 2) {
        // do action here
      }
    }
  }