GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes How do I add a ButtonGroup in an applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do I add a ButtonGroup in an applet?" Watch "How do I add a ButtonGroup in an applet?" New topic
Author

How do I add a ButtonGroup in an applet?

Rukmani Gopalan
Greenhorn

Joined: Sep 12, 2000
Posts: 8
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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Sep 12, 2000
Posts: 8
Hi,
I'm sorry I was mistaken that a Buttongroup was also a component. It is a COntrol group.
 
GeeCON Prague 2014
 
subject: How do I add a ButtonGroup in an applet?