public void displayQuestions(String urls) throws IOException {
		URL url = getClass().getResource(urls);
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				url.openStream()));
		contentPane.removeAll();
		for (int i = 0; i < 4; i++) {
			label[i] = new JLabel(reader.readLine());
			
			//display first set of questions
			if (i == 0) {
				label[i].setBounds(10, 26, 500, 32);
				for (int j = 0; j < 4; j++) {
					radiobutton[i][j] = new JRadioButton(reader.readLine());
					radiobutton[i][j].setBounds(10, 65 + (j * 36), 257, 23);
					buttonGroup.add(radiobutton[i][j]);
					contentPane.add(radiobutton[i][j]);
				}
				answers[i] = Integer.parseInt(reader.readLine());
			}
			//display second set of questions
			if (i == 1) {
				label[i].setBounds(10, 233, 500, 33);
				for (int j = 0; j < 4; j++) {
					radiobutton[i][j] = new JRadioButton(reader.readLine());
					radiobutton[i][j].setBounds(10, 288 + (j * 36), 257, 23);
					buttonGroup_1.add(radiobutton[i][j]);
					contentPane.add(radiobutton[i][j]);
				}
				answers[i] = Integer.parseInt(reader.readLine());
			}
			//display third set of questions
			if (i == 2) {
				label[i].setBounds(450, 26, 500, 33);
				for (int j = 0; j < 4; j++) {
					radiobutton[i][j] = new JRadioButton(reader.readLine());
					radiobutton[i][j].setBounds(450, 65 + (j * 36), 257, 23);
					buttonGroup_2.add(radiobutton[i][j]);
					contentPane.add(radiobutton[i][j]);
				}
				answers[i] = Integer.parseInt(reader.readLine());
			}
			//display fourth set of questions
			if (i == 3) {
				label[i].setBounds(450, 233, 500, 33);
				for (int j = 0; j < 4; j++) {
					radiobutton[i][j] = new JRadioButton(reader.readLine());
					radiobutton[i][j].setBounds(450, 288 + (j * 36), 257, 23);
					buttonGroup_3.add(radiobutton[i][j]);
					contentPane.add(radiobutton[i][j]);
				}
				answers[i] = Integer.parseInt(reader.readLine());
			}
			contentPane.add(label[i]);
			label[i].setVisible(true);
		}
		contentPane.add(btnMainMenu);
		contentPane.add(submit);
		validate();
		repaint();
	}