private void createPanel() {
		setSize(415, 400);
		setTitle("Edit Teams");
		setLocationRelativeTo(getParent());
		setIconImage(Images.EDIT_TEAM_ICON);
		contentPanel.setLayout(null);
		
		lblChooseTeam.setBounds(32, 34, 69, 14);
		contentPanel.add(lblChooseTeam);
		teamChooser.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				for(int i = 0; i < pv.teams.size(); i++) {
					if(pv.teams.get(i).equals((Team) teamChooser.getSelectedItem())) {
						setItems(pv.teams.get(i));
					}
				}
			}
		});
		teamChooser.setBounds(32, 50, Constants.TEXT_FIELD_WIDTH, 20);
		teamChooser.setToolTipText("Choose team to edit");
		contentPanel.add(teamChooser);
		
		img.setBounds(300, 30, 50, 50);
		contentPanel.add(img);
		
		info.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Team info"));
		info.setBounds(32, 94, 341, 99);
		contentPanel.add(info);
		info.setLayout(null);
		
		lblName.setBounds(23, 26, 46, 14);
		info.add(lblName);
		
		txtName = new JTextField();
		txtName.setBounds(23, 41, Constants.TEXT_FIELD_WIDTH, 20);
		txtName.setToolTipText("Team's name");
		info.add(txtName);
		txtName.setColumns(10);
		
		lblColor.setBounds(179, 26, 46, 14);
		info.add(lblColor);
		
		chooseColor.setBounds(209, 38, 109, 23);
		chooseColor.setToolTipText("Choose the team's color");
		chooseColor.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				currentColor = JColorChooser.showDialog(EditTeam.this, "Choose Color", currentColor);
				colorChosen.setBackground(currentColor);
			}
		});
		info.add(chooseColor);
		
		colorChosen.setBounds(179, 41, 20, 20);
		colorChosen.setToolTipText("Team's color");
		colorChosen.setBorder(BorderFactory.createLineBorder(Color.BLACK));
		info.add(colorChosen);
		colorChosen.setEditable(false);
		
		btnSaveChanges.setToolTipText("Save changes made to team");
		btnSaveChanges.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				saveChanges(false);
			}
		});
		btnSaveChanges.setBounds(32, 255, 101, 23);
		contentPanel.add(btnSaveChanges);
		
		btnReset.setToolTipText("Reset changes made to team");
		btnReset.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				reset();
			}
		});
		btnReset.setBounds(143, 255, 89, 23);
		contentPanel.add(btnReset);
		
		btnDelete.setToolTipText("Delete the selected team");
		btnDelete.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Team teamToDelete = (Team) teamChooser.getSelectedItem();
				
				for(int i = 0; i < pv.counselors.size(); i++) {
					Counselor c = pv.counselors.get(i);
					
					if(c.getTeam() == teamToDelete) {
						c.setTeam(null);
					}
				}
				
				for(int i = 0; i < pv.tables.size(); i++) {
					Table t = pv.tables.get(i);
					
					if(t.getTeam() == teamToDelete) {
						t.setTeam(null);
					}
				}
				
				pv.teams.remove(teamToDelete);
				updateChooser();
				reset();
			}
		});
		btnDelete.setBounds(172, 49, 89, 23);
		contentPanel.add(btnDelete);
		
		okButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				saveChanges(true);
				resetAndDispose();
			}
		});
		
		cancelButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				resetAndDispose();
			}
		});
		
		setBackgroundColor(Constants.BACKGROUND);
		setFontColor(Constants.FONT_COLOR);
	}