![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e769. Selecting a JRadioButton Component in a Button Group// To create a radio button and button group, // see e768 Creating a JRadioButton Component // Select the radio button; the currently selected radio button is deselected. // This operation does not cause any action events to be fired. ButtonModel model = radioButton.getModel(); group.setSelected(model, true);
e770. Determining the Selected JRadioButton in a Button Group e771. Determining If a JRadioButton Component Is Selected e772. Adding an Icon to the Label of a JRadioButton Component e773. Customizing the Icons in a JRadioButton Component © 2002 Addison-Wesley. |