void (ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { // it happens when the selecting process is over and the selected position is set finaly SearchResult selectedSearchResult = list.getSelectedValue(); if (selectedSearchResult != null) { largeFileEditor.showSearchResult(selectedSearchResult); } } }