identifying double click in java

Suraj Air picture Suraj Air · Oct 29, 2010 · Viewed 64.2k times · Source

I want to know how can we perform action when mouse is double clicked in a component.

Answer

kaliatech picture kaliatech · Oct 29, 2010
public void mouseClicked(MouseEvent event)
{
  if (event.getClickCount() == 2) {
    System.out.println("double clicked");
  }
}