Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Button group in panel

 
geeta khurana
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks
 
Tom Pelly
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you just add them as you would a normal group of buttons?
 
geeta khurana
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thnx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic