Java Utililty Methods JRadioButtonMenuItem

List of utility methods to do JRadioButtonMenuItem

Description

The list of methods to do JRadioButtonMenuItem are organized into topic(s).

Method

JRadioButtonMenuItemcreateJRadioButtonMenuItem(String name, String command, ActionListener listener, ButtonGroup buttonGroup, boolean isSelected)
Creates a radio button menu item with specified name, acton command and state.
JRadioButtonMenuItem item = new JRadioButtonMenuItem(name);
item.setActionCommand(command);
item.addActionListener(listener);
item.setSelected(isSelected);
if (buttonGroup != null) {
    buttonGroup.add(item);
return item;
...