List of utility methods to do JRadioButtonMenuItem
JRadioButtonMenuItem | createJRadioButtonMenuItem(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; ... |