private void addTable() {
		tableModel = new DefaultTableModel(new String[] { "nazwa", "punkty",
				"czas zakończenia" }, 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();
					if (rowNum >= 0) {
						userDetailsView
								.prepareUserDetailsView((String) tableModel
										.getValueAt(rowNum, 0));
					}
				}
			}
		});

		userTabPane.setLayout(new BorderLayout());
		userTabPane.add(table.getTableHeader(), BorderLayout.NORTH);
		userTabPane.add(table, BorderLayout.CENTER);
	}