importButton.addActionListener((ActionListener) EventHandler.create(
ActionListener.class, this, "doImport"));
importButton.setEnabled(false);
final BoundDefectData data = BoundDefectData.getDefectData(this);
data.addTableModelListener(new TableModelListener() {
public void tableChanged(TableModelEvent e) {
importButton.setEnabled(data.hasSelectedDefects());
}});
Box buttonBox = Box.createHorizontalBox();