public void adjustFeedback() { actionCancel.setEnabled(true); actionChooseNone.setEnabled(true); if (getSwingFocus() == null) { actionChooseSelected.setEnabled(false); } else { actionChooseSelected.setEnabled(true); } }
@Override public void show(Component c, int x, int y) { int[] l = table.getSelectedRows(); deleteAction.setEnabled(l.length > 0); super.show(c, x, y); }