void (boolean enabled) { if (!enabled) { myExisting.setText(myExisting.getToolTipText()); mySameNameAsLocal.setText(mySameNameAsLocal.getToolTipText()); myTrunk.setText(myTrunk.getToolTipText()); } myExisting.setEnabled(enabled); mySameNameAsLocal.setEnabled(enabled); myTrunk.setEnabled(enabled); myCreateStandard.setEnabled(enabled && myTrunk.isSelected()); }