Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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.
I agree. Here's the link:
subject: Button group in panel
Similar Threads
SCJP 1.5 Study Group.
Game on SQL
SCJP - Study group
Matthew and Pavel: Gridbaglayout?