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"); } }
1.4m articles
1.4m replys
5 comments
57.0k users