final String path = imagePath;
final JPanel frame = topPane;
Thread t = new Thread() {
public void run() {
try {
<BUG>IndexReader reader = DirectoryReader.open(FSDirectory.open(new File(textfieldIndexName.getText())));
</BUG>
int numDocs = reader.numDocs();
System.out.println("numDocs = " + numDocs);
ImageSearcher searcher = getSearcher();

final String path = imagePath;
final JPanel frame = topPane;
Thread t = new Thread() {
public void run() {
try {
IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(textfieldIndexName.getText())));
int numDocs = reader.numDocs();
System.out.println("numDocs = " + numDocs);
ImageSearcher searcher = getSearcher();
