passing data types after an action event
I have created a java questionnaire that stores integer values once a selection of radio buttons have been clicked.
I am then thinking to retrieve the integer values from the buttons clicked using the button groups through the action event.
An example of the code is as follows:
public void actionPerformedQuestion2(ActionEvent event2)
{
//This line will get the selected button in group2 and from that button get the 'value' assigned to that particular radiobutton
int valueForGroup2=((katbutton) group2.getSelection()).getValue();
}
The value stored in the button group is passed and stored in the variable "valueForGroup2".
I need to use this value in another method but i am unsure as to how this can be done as the void method in the ActionEvent doesnt return values.
Does anybody know how this can be done?
their are also other values to be passed over at the same time as the above button group. I want to be able to pass them all at once, when a submit button is pressed.
can anybody help please?
Kat

