private void reload(final String description) {
addButton.setEnabled(false);
deleteButton.setEnabled(false);
reloadButton.setEnabled(false);
SwingWorker worker = new SwingWorker() {
public Object construct() {
System.err.println("Reloading " + description);
_search.reload(description);
return null;
}
public void finished() {
addButton.setEnabled(true);
deleteButton.setEnabled(true);
reloadButton.setEnabled(true);
}
};
worker.start();
}