File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Issue in JRadioButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Issue in JRadioButton" Watch "Issue in JRadioButton" New topic

Issue in JRadioButton

rahul S Sharma

Joined: Jun 08, 2011
Posts: 21
Hi All,

I have two jradiobuttons in JDialogbox. I have set functionality on each one. When I clicks on first radio button , a table displays in dialog box but when i clicks on second one , some labels and textfield appears. Both actions are overlapping each other. My requirement is that if i click on second radio button , table that is showing in dialog box should be disappear . Only labels and textfield should appear which is the result of clicking second radio button.

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
sounds ideally suited to a CardLayout
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

it sure does. i am surprised i never learned about this class before since it has been around from the beginning.

Visit my download page
I agree. Here's the link:
subject: Issue in JRadioButton
It's not a secret anymore!