private void addAnswersTable() {
		tablePanel = new JPanel();
		tableModel = new DefaultTableModel(new String[] { "Treść odpowiedzi", "Poprawna" }, 0){
	        Class[] types = {
	                String.class, Boolean.class
	            };
	            // making sure that it returns boolean.class.   
	            @Override
	            public Class getColumnClass(int columnIndex) {
	                return types[columnIndex];
	            }
	        };;

		tablePanel.setLayout(new BorderLayout());
		table = new JTable(tableModel);
		header = table.getTableHeader();

		table.getColumn("Poprawna").setMinWidth(80);
		table.getColumn("Poprawna").setMaxWidth(80);

		// Moze bedzie kolumna JButtonow

		table.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));

		table.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent e) {
				if (e.getClickCount() == 1) {
					JTable target = (JTable) e.getSource();
					rowNum = target.getSelectedRow();
					colNum = target.getSelectedColumn();
				}
			}
		});
		
		tableScrollPane = new JScrollPane(tablePanel);
		tableScrollPane.setBounds(23, 286, 518, 203);
		add(tableScrollPane);
		
		tablePanel.add(header, BorderLayout.NORTH);
		tablePanel.add(table, BorderLayout.CENTER);

		splitPane = new JPanel();
		tablePanel.add(splitPane, BorderLayout.SOUTH);

		btnUp.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				moveUp();
			}
		});
		add(btnUp);
		btnUp.setBounds(200, 500, 89, 23);

		btnDown.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				moveDown();
			}
		});
		
		btnDown.setBounds(100, 500, 89, 23);
		add(btnDown);
		btnAdd.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				String tempAnswer = "";
				createDialog(tempAnswer);
			}
		});

		btnDelete.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if (tableModel.getRowCount() != 0 && rowNum >= 0) {
					tableModel.removeRow(rowNum);
				}
			}
		});

		btnAdd.setBounds(551, 309, 89, 23);
		btnDelete.setBounds(551, 350, 89, 23);

		add(btnAdd);
		add(btnDelete);
	}