for(int i=0; i<questions.length; i++) {
group[i] = new ToggleGroup();
Label label = new Label((i+1) + questions[i]);
grid.add(label, 0, i);
agree[i] = new RadioButton("Agreed");
agree[i].setToggleGroup(group[i]);
grid.add(agree[i], 1, i);
disagree[i] = new RadioButton("Disagree");
disagree[i].setToggleGroup(group[i]);
grid.add(disagree[i], 2, i);
no_opinion[i] = new RadioButton("No opinion");
no_opinion[i].setToggleGroup(group[i]);
grid.add(no_opinion[i], 3, i);
}