private void createDialog(final ArrayList<Boolean> list, final int index) {
		final JDialog dialog = new JDialog();
		Boolean bool = list.get(index);
		dialog.setSize(360, 150);
		dialog.setResizable(false);
		dialog.getContentPane().setLayout(null);

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

		JLabel lblEquipmentLabel = new JLabel("Czy dodać jako ekwipunek?");
		lblEquipmentLabel.setBounds(25, 25, 200, 14);
		dialog.add(lblEquipmentLabel);

		final JCheckBox chckbxTrueOrFalse = new JCheckBox(
				"Tak/Nie");
		chckbxTrueOrFalse.setBounds(25, 47, 200, 23);
		chckbxTrueOrFalse.setSelected(bool);
		dialog.add(chckbxTrueOrFalse);

		JButton btnOk = new JButton("Ok");
		btnOk.setBounds(235, 70, 89, 23);
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				boolean trueOrFalse = chckbxTrueOrFalse.isSelected();
					if (trueOrFalse == true) {
						list.set(index, true);
					} else {
						list.set(index, false);
					}
				dialog.dispose();
			}
		});
		dialog.add(btnOk);
		dialog.setVisible(true);
	}