void (ItemEvent e) { final boolean enabled = myCbEnableToString.isSelected(); myRbAllThatOverride.setEnabled(enabled); myRbFromList.setEnabled(enabled); myToStringFilterEditor.setEnabled(enabled && myRbFromList.isSelected()); }