jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes How to group radio buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to group radio buttons" Watch "How to group radio buttons" New topic
Author

How to group radio buttons

Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 129
Hii,

i want to create group of radio buttons under heading Encoding the group will have two radio buttons .i have written something like this


which class should i use to clearly display the group with a heading
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44013
    
  33
Does your present suggestion not work? It looks all right to me just on a 5-second glance. How about putting a border round the JLabel?
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 434
How about use a "TitledBorder"?
[ April 29, 2007: Message edited by: Louis Wang ]

To be or not to be. It's a question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to group radio buttons
 
It's not a secret anymore!