File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Button group in panel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Button group in panel" Watch "Button group in panel" New topic

Button group in panel

geeta khurana

Joined: May 18, 2001
Posts: 6
I have a group of JRadio buttons and I want to add the group in JPanel. Is it possible to do it? If yes, pls help me out.
Tom Pelly

Joined: Jun 29, 2001
Posts: 14
Can't you just add them as you would a normal group of buttons?
geeta khurana

Joined: May 18, 2001
Posts: 6
Thanks Tom. I could do it. Earlier I was trying to add the buttongroup to the panel which was not being accepted. Now I added the buttons to the buttongroup and then added buttons to the panel.
It is sorta covered in the JavaRanch Style Guide.
subject: Button group in panel
It's not a secret anymore!