I want to know how can we perform action when mouse is double clicked in a component.
public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2 && event.getButton() == MouseEvent.BUTTON1) { System.out.println("double clicked"); } }
2.1m questions
2.1m answers
60 comments
57.0k users