void () { boolean enabled = !myTextRadioButton.isSelected(); // single task URL doesn't make sense when legacy regex handler is used mySingleTaskURLText.setEnabled(enabled); mySingleTaskMethodComboBox.setEnabled(enabled); mySingleTaskURLLabel.setEnabled(enabled); }