hi......i wanted to know how to update value from radiobutton(java) into database (Microsoft Access)-which is in the form of combobox-Male or Female
i was only able to retrieve the gender in java from database.....so i use this way
String gender =rsMember.getString("Sex");//from database
jrbMale.setSelected(true);//here can set but how to get
so,how to get the value(M or F) from radiobutton and pass it or update into the database...?
char male=jrbMale.getSelected//this is not working
char male=jrbMale.getSelectedObjects();//also not working
if anyone got solution please correct it for me.....
after getting the value.....how to update
is it like this...
> char male=jrbMale.getSelected//this is not working
You can't just make up method names and expect them to exist. Read the API for JRadioButton and find out the correct method that returns a boolean that tells you whether the radio button is selected (hint, hint)