I'm trying to make a button group with two JCheckBoxes, but for some reason I'm having problems adding them to the button group:
Thanks for any help - this is doing my head inCode:ButtonGroup rye = new ButtonGroup(); JCheckBox isRye = new JCheckBox("Yes", false); rye.add(isRye); JCheckBox notRye = new JCheckBox("No", true); rye.add(notRye);![]()


Reply With Quote


Bookmarks