aspose file tools*
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: 125
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


The biggest bankruptcy is the loss of enthusiasm
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38756
    
  23
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: 433
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