private void createDialog(String answ) {
		final JDialog dialog = new JDialog();
		dialog.setSize(460, 250);
		dialog.setResizable(false);
		dialog.getContentPane().setLayout(null);

		dialog.setLocationRelativeTo(this);
		dialog.setLayout(null);

		JLabel lblAnswerLabel = new JLabel("Wprowadź odpowiedź");
		lblAnswerLabel.setBounds(25, 25, 134, 14);
		dialog.add(lblAnswerLabel);

		final JTextField tfAnswer = new JTextField();
		tfAnswer.setBounds(25, 49, 399, 30);
		dialog.add(tfAnswer);
		tfAnswer.setColumns(10);

		final JCheckBox chckbxTrueOrFalse = new JCheckBox(
				"Odpowiedź prawidłowa?");
		chckbxTrueOrFalse.setBounds(25, 97, 161, 23);
		dialog.add(chckbxTrueOrFalse);

		JButton btnOk = new JButton("Ok");
		btnOk.setBounds(335, 127, 89, 23);
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				String tempAnswer = tfAnswer.getText();
				boolean trueOrFalse = chckbxTrueOrFalse.isSelected();
				tableModel.addRow(new Object[] { tempAnswer, trueOrFalse });
				dialog.dispose();
			}
		});
		dialog.add(btnOk);
		dialog.setVisible(true);
	}