progressSearch.setValue(0);
IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(textfieldIndexName.getText())));
ImageSearcher searcher = getSearcher();
progressSearch.setString("Searching for matching images: " + searcher.getClass().getName());
ImageSearchHits hits = searcher.search(myDoc, reader);
<BUG>tableModel.setHits(hits, progressSearch);
</BUG>
reader.close();
Rectangle bounds = resultsTable.getCellRect(0, 0, true);
resultsPane.getViewport().setViewPosition(bounds.getLocation());

progressSearch.setValue(0);
IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(textfieldIndexName.getText())));
ImageSearcher searcher = getSearcher();
progressSearch.setString("Searching for matching images: " + searcher.getClass().getName());
ImageSearchHits hits = searcher.search(myDoc, reader);
tableModel.setHits(hits, progressSearch, reader);
reader.close();
Rectangle bounds = resultsTable.getCellRect(0, 0, true);
resultsPane.getViewport().setViewPosition(bounds.getLocation());
