code: @Override
      public void setComponentEnabled(boolean enabled) {
          super.setComponentEnabled(enabled);
  
          addButton.setEnabled(enabled);
          removeWithoutConfirmationCheckBox.setEnabled(enabled);
  
          boolean enable = enabled && getTable().getSelectionModel().getMinSelectionIndex() >= 0;
          if (modifyButton != null) {
              modifyButton.setEnabled(enable);
          }
          removeButton.setEnabled(enable);
      }
docs: {@inheritDoc}
  <p>
  Overridden to also enable/disable the added buttons ("add", "modify", "remove" and "remove without confirmation").
  </p>