int position = javaList.getLeadSelectionIndex();
Boolean fact = consistentFacts.get(position);
if (fact == null || !fact.booleanValue()) {
answer.getAndSet(position);
synchronized (answer) {
answer.notifyAll();
}
dialog.setVisible(false);
dialog.dispose();
}