I have a JMenu with some radio buttons...For some reason, when I click the stupid things, they won't do anything...and by that, I mean they want change their state to being clicked(as in the circle being filled)..It's like they are disabled...I'll post the snippets of code with them in it:
Why would I not be able to click these buttons?Code:JMenu formatMenu = new JMenu("Format"); ButtonGroup bg = new ButtonGroup(); rb0 = new JRadioButton("###",false); rb0.addActionListener(this); rb2 = new JRadioButton("###.##",true); rb2.addActionListener(this); rb4 = new JRadioButton("###.####",false); rb4.addActionListener(this); rb6 = new JRadioButton("###.######",false); rb6.addActionListener(this); bg.add(rb0); bg.add(rb2); bg.add(rb4); bg.add(rb6); formatMenu.add(rb0); formatMenu.add(rb2); formatMenu.add(rb4); formatMenu.add(rb6);
<Moderator added green check mark>


Reply With Quote