void (MouseEvent e) { if (e.getClickCount() == 2) { int index = myShowingResultsList.locationToIndex(e.getPoint()); if (index != -1) { ListElementWrapper element = myShowingResultsList.getModel().getElementAt(index); element.onSelected(); } } }