File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Swing / AWT / SWT
want to get the value of selected radio button
Joined: Jul 30, 2008
Aug 04, 2008 07:42:00
I am having 2 radio button and i want to get a value on selection of any one of the radio button.
like if "YES" it selected value should be "True" or boolean "t" and same way if the radio button "NO" is selected value should be "False" or boolean "f".
i am not able to find any sort of event on the selection of the radio button.
Joined: Oct 27, 2005
Aug 04, 2008 08:01:00
That's because the methods for retrieving and setting the state is not in
but its superclass,
. They're called isSelected and setSelected.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: want to get the value of selected radio button
JTable and JRadioButtons
Redrawing the UI
How values of a radio button selected can be retained
get the radio button value in three differnt jsp
radio buttons selection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013