public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { // metodo 1 } else if (evt.getClickCount() == 1) { // metodo 2 } }