how-to

Events

How to check mouse doubleclick

For checking count of mouse clicks read value by method java.awt.event.MouseEvent.getClickCount().

jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
  public void mouseClicked(java.awt.event.MouseEvent evt) {
    jLabel1MouseClicked(evt);
  }
});
...
...
...
private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {
  if ( evt.getClickCount() == 2 )
    JOptionPane.showMessageDialog( null, "DoubleClick" );
}