public void setQandA();
label1.setText("question number:" + " "+ (i+1));
radioButton1.setText(answer1[i]); // when i comment those lines program running
radioButton1.setText(answer2[i]); // otherwise not
Joined: Jul 03, 2006
i am not clear on question but this approach you can use
Looking for new ideas if you don't get one steal one . SCJP
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button. Thanks, and welcome to JavaRanch!