|
-
October 4th, 2000, 06:05 PM
#1
Any idea how to add a JRadioButton.?
The following code produces this error:
Test.java:2586: Incompatible type for method. Can't convert javax.swing.
ButtonGroup to java.awt.Component.
PanelGroup.add(group);
^
1 error
This is the code:
JPanel PanelGroup = JPanel();
ButtonGroup group = new ButtonGroup();
group.add(oneRadio);
group.add(twoRadio);
group.add(threeRadio);
group.add(fourRadio);
Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|