void (final MouseEvent e) { if (e.isConsumed()) return; if (e.isPopupTrigger()) return; if (e.getClickCount() == 1) { ctrlClick(index); e.consume(); } else if (e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1) { requestSelectedItemFocus(); doubleClick(index); e.consume(); } }