File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 36478
    
  16
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: 425
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
 
Similar Threads
observable
JFrame panels NOT showing. WHY??
Arrays Won't Work
why i am not getting the proper format of the following code
JTextArea scroll bar