private void buildQuestionPanelP2() {
		pnlNewQ2 = new JPanel();
		pnlNewQ2.setLayout(new BoxLayout(pnlNewQ2, BoxLayout.X_AXIS));
		
		pnlQTypeSwap = new JPanel();
		cardQType = new CardLayout();
		pnlQTypeSwap.setLayout(cardQType);
		
		
		/* Multiple choice: */
		ButtonGroup bg = new ButtonGroup();
		rbAnsList = new ArrayList<JRadioButton>(4);
		
		// multiple choice text fields:
		tfMultiList = new ArrayList<JTextField>(4);
		
		pnlMultiAns = new JPanel();
		pnlMultiAns.setLayout(new GridLayout(4, 0, 0, 5));
		
		// build the table:
		String[] labels = { "A", "B", "C", "D" };
		for (int i = 0; i < 4; i++) {
			JRadioButton rb = new JRadioButton(labels[i]);
		//	rb.setPreferredSize(new Dimension((int)(rb.getWidth()*1.5d), rb.getHeight()));
			JTextField ans = new JTextField("");
			
			rbAnsList.add(rb);
			tfMultiList.add(ans);
			// add to button group
			bg.add(rb);
			
			// layout the row:
			rb.setAlignmentX(JTextField.LEFT_ALIGNMENT);
			
			JPanel subPane = new JPanel();
			subPane.setLayout(new BoxLayout(subPane, BoxLayout.X_AXIS));
			subPane.add(rb);
			subPane.add(Box.createHorizontalStrut(5));
			subPane.add(ans);
			
			// put the sub panel inside the main container for the questions
			pnlMultiAns.add(subPane);
		}
		
		rbAnsList.get(0).setSelected(true);
		
		/* end multi choice */
		
		/* short answer: */
		
		pnlShortAns = new JPanel();
		pnlShortAns.setLayout(new BoxLayout(pnlShortAns, BoxLayout.Y_AXIS));
		
		lblQAnswer = new JLabel("Answer:");
		tfShortAnswer = new JTextArea();
		JScrollPane scroll = new JScrollPane(tfShortAnswer);
		tfShortAnswer.setBorder(scroll.getBorder());
		
		lblQAnswer.setAlignmentX(JLabel.LEFT_ALIGNMENT);
		scroll.setAlignmentX(JScrollPane.LEFT_ALIGNMENT);
		
		pnlShortAns.add(lblQAnswer);
		pnlShortAns.add(Box.createVerticalStrut(10));
		pnlShortAns.add(scroll);
		
		/* end short */
		
		pnlQTypeSwap.add(pnlMultiAns, TYPE_MULTI);
		pnlQTypeSwap.add(pnlShortAns, TYPE_SHORT);
		pnlQTypeSwap.setAlignmentX(JPanel.LEFT_ALIGNMENT);
		//pnlQTypeSwap.setAlignmentY(JPanel.BOTTOM_ALIGNMENT);
		
		/* buttons: */
		
		btnNewQBack = new JButton("Back");
		btnNewQSubmit = new JButton("Submit");
		
		btnNewQBack.setAlignmentX(JButton.RIGHT_ALIGNMENT);
		btnNewQSubmit.setAlignmentX(JButton.RIGHT_ALIGNMENT);
		
		//btnNewQBack.setAlignmentY(JButton.BOTTOM_ALIGNMENT);
		btnNewQSubmit.setAlignmentY(JButton.BOTTOM_ALIGNMENT);
		
		btnNewQBack.setPreferredSize(btnNewQSubmit.getPreferredSize());
		
		JPanel sub = new JPanel();
		sub.setLayout(new BoxLayout(sub, BoxLayout.Y_AXIS));
		
		sub.add(Box.createVerticalGlue());
		sub.add(btnNewQBack);
		sub.add(Box.createVerticalStrut(5));
		sub.add(btnNewQSubmit);
		//sub.add(Box.createVerticalStrut(5));
		
		sub.setAlignmentY(JPanel.CENTER_ALIGNMENT);
		
		/* end buttons */
		
		
		pnlNewQ2.add(pnlQTypeSwap);
		pnlNewQ2.add(Box.createHorizontalStrut(20));
		pnlNewQ2.add(Box.createHorizontalGlue());
		pnlNewQ2.add(sub);
		
		if (rbMultChoice.isSelected()) {
			cardQType.show(pnlQTypeSwap, TYPE_MULTI);
		} else {
			cardQType.show(pnlQTypeSwap, TYPE_SHORT);
		}
		
		
	}