Return to Snippet

Revision: 34082
at October 17, 2010 01:34 by studioevoque


Initial Code
aComponent.addMouseListener(new MouseAdapter(){
     public void mouseClicked(MouseEvent e){
      if (e.getClickCount() == 2){
         System.out.println(" double click" );
         }
      }
     } );

Initial URL

                                

Initial Description
Don't forget the nifty event properties to detect double-click !

Initial Title
Detect double-click in Java Swing

Initial Tags
java

Initial Language
Java