private void addTable() {
		tableModel = new DefaultTableModel(new String[] { "id", "czas domyslny",
				"domyslne punkty", "nazwa" }, 0);

		table = new JTable(tableModel);

		table.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent e) {
				if (e.getClickCount() == 1) {
					JTable target = (JTable) e.getSource();
					rowNum = target.getSelectedRow();
					colNum = target.getSelectedColumn();
				}
			}
		});
		
		contentPane.setLayout(new BorderLayout());
		table.setBounds(400, 22, 0, 0);
		tablePanel = new JPanel(new BorderLayout());

		tablePanel.add(table.getTableHeader(), BorderLayout.NORTH);
		tablePanel.add(table, BorderLayout.CENTER);
		scrollPanel = new JScrollPane(tablePanel);
		contentPane.add(scrollPanel);
	}