public void run() {
close();
}
}, getKeyStroke(VK_ESCAPE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
distance = new DoubleDocument(r.getSelectByDistancePreference());
textFieldDistance.setDocument(distance);
order = new IntegerDocument(r.getSelectByOrderPreference());
textFieldOrder.setDocument(order);
threshold = new DoubleDocument(r.getSelectBySignificancePreference());
textFieldSignificance.setDocument(threshold);
r.getPositionsView().getSelectionModel().addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting())