Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I add a ButtonGroup in an applet?

 
Rukmani Gopalan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I tried to add a ButtonGroup bg into an applet with
getContentPane().add(bg)
but I get a compiler error. how do I go about with it?
Thanks
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you adding the button group to an applet or to a JApplet? It won't be necessary to get the content pane to add a component to an applet.
 
Rukmani Gopalan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm sorry I was mistaken that a Buttongroup was also a component. It is a COntrol group.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic