this.updateRemoveActionStatus();
}
@Override
public void contentsChanged(final ListDataEvent e) {
}
<BUG>private void updateRemoveActionStatus() {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
removeAction.setEnabled(model.getSize() > 1);
}
});</BUG>
}

this.updateRemoveActionStatus();
}
@Override
public void intervalAdded(final ListDataEvent e) {
this.updateRemoveActionStatus();
}
@Override
public void contentsChanged(final ListDataEvent e) {
}
private void updateRemoveActionStatus() {
SwingUtilities.invokeLater(() -> removeAction.setEnabled(model.getSize() > 1));
}
