I am trying to develop a quiz application using LWUIT resource editor and am having great difficulty.
I have created two Forms
'GUI1' and 'GUI2' .
GUI1 displays the following:
- A question(in the form of a
TextField
) - 5
RadioButtons
belonging to the same group - A
Button
which says 'OK'
GUI2 displays the following:
- A
TextField
- A
Button
to go back to GUI1
Now the problem is:
Initially GUI1 is displayed. When the user chooses a RadioButton
, I wish to know which RadioButton
was selected. If that RadioButton
was indeed the correct answer, then when the user clicks on the 'OK' Button
on GUI1, I wish to display the text 'correct' in the TextField
on GUI2 and then display the GUI2.
If the user chose the wrong answer, then I wish to display the text "Wrong" in the TextField
on GUI2 and then display the GUI2.
How can this be done with resource editor? I am very foxed. Please help.
I wish to refer to the TextField
on GUI2 when I am currently on GUI1. How can this be done with resource editor? Writing a manual code for all this would be very time consuming.