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

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 "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: 4339

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
It is sorta covered in the JavaRanch Style Guide.
subject: Issue in JRadioButton
Similar Threads
How can i show backend table data in CSV format
Regarding JTextField
Disabling form elements on a table row
refreshing the page when radio button clicked
How to get values of first page in second page