This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 38039
    
  22
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: 430
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
why i am not getting the proper format of the following code
JTextArea scroll bar
JFrame panels NOT showing. WHY??
Arrays Won't Work