void () { try { myUiEventsEnabled = false; myLabelFont.setEnabled(false); myCbBold.setSelected(false); myCbBold.setEnabled(false); myCbItalic.setSelected(false); myCbItalic.setEnabled(false); updateColorChooser(myCbForeground, myForegroundChooser, false, false, null); updateColorChooser(myCbBackground, myBackgroundChooser, false, false, null); updateColorChooser(myCbErrorStripe, myErrorStripeColorChooser, false, false, null); updateColorChooser(myCbEffects, myEffectsColorChooser, false, false, null); myEffectsCombo.setEnabled(false); myInheritanceLabel.setVisible(false); myInheritAttributesBox.setVisible(false); } finally { myUiEventsEnabled = true; } }