if (dirList != null){
dirList.setEnabled(!selected);
}
// hacky
Validator validator = (Validator)
fileField.getClientProperty("validator");
setValid(selected || validator.isValid(fileField.getText()));
}
});
panel = new JPanel(new MigLayout(
"wrap 2", "[fill]", "[] [] [] [fill, grow]"));