JComponent () { if (myCreateBranch.isSelected()) { return myBranchName; } else if (myUseBranch.isSelected()) { return myUseBranchCombo; } else if (myCreateChangelist.isSelected()) { return myChangelistName; } return null; }