Hi friends
I have data in Resultset and wants to display it in the radio buttons and jlabel after storing it in Arraylist. My Arraylist will be:
List<Object,Object> list=new ArrayList<Object,Object>();
One Object contains questions like: Who is Indian
test cricket team captain?
Second Object contain its answers like: V. Kohli.
These types of Q/A are about 40 stored in ArrayList from Resultset.
I have a GUI where there is a JLabel and I need to assign Questions to it (Ist object of ArrayList). There is a radiobutton where I have to assign the Answer(from second Object).
Please some body help me in slightly detail how can I populate these components from the ArrayList.
Second and important query is: When user slect radiobutton, he will click a button to move to next question and answer so the ArrayList should be incremented, so how can I do it?
Very thanks to every one.