private void createPanel() {
		setTitle("Edit counselors");
		setSize(500, 475);
		setLocationRelativeTo(getParent());
		setIconImage(Images.EDIT_COUNS_ICON);
		contentPanel.setLayout(null);
		
		counsChooser.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				for(int i = 0; i < pv.counselors.size(); i++) {
					if(pv.counselors.get(i).equals((Counselor) counsChooser.getSelectedItem())) {
						setItems(pv.counselors.get(i));
					}
				}
			}
		});
		counsChooser.setBounds(32, 54, 197, 20);
		counsChooser.setToolTipText("Counselor to edit");
		contentPanel.add(counsChooser);
		
		img.setBounds(375, 40, 50, 50);
		contentPanel.add(img);
		
		//The panel that contains the info of the selected counselor
		panel.setBounds(32, 116, 420, 143);
		panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Counselor info"));
		contentPanel.add(panel);
		panel.setLayout(null);
		
		//The label for the name of the selected counselor
		lblName.setBounds(24, 30, 46, 14);
		panel.add(lblName);
		
		//The text field for editing the name
		txtName = new JTextField();
		txtName.setBounds(24, 46, Constants.TEXT_FIELD_WIDTH, 20);
		txtName.setToolTipText("Counselor's name");
		panel.add(txtName);
		txtName.setColumns(10);
		
		//The label for the name of the selected counselor's cabin
		lblCabinName.setBounds(24, 77, 61, 14);
		panel.add(lblCabinName);
		
		//The text field for editing the cabin name
		txtCabinName = new JTextField();
		txtCabinName.setBounds(24, 94, Constants.TEXT_FIELD_WIDTH, 20);
		txtCabinName.setToolTipText("Counselors's cabin name");
		panel.add(txtCabinName);
		txtCabinName.setColumns(10);
		
		//The Team dropdown list
		lblTeam.setBounds(215, 30, 46, 14);
		panel.add(lblTeam);
		teamChooser.setBounds(215, 46, Constants.TEXT_FIELD_WIDTH, 20);
		teamChooser.setToolTipText("Counselor's team");
		teamChooser.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setTeamColor();
			}
		});
		panel.add(teamChooser);
		
		//The label for the partner dropdown list
		lblPartner.setBounds(215, 77, 46, 14);
		panel.add(lblPartner);
		
		//The actual partner dropdown list
		partnerChooser.setBounds(215, 94, Constants.TEXT_FIELD_WIDTH, 20);
		partnerChooser.setToolTipText("Counselor's partner");
		panel.add(partnerChooser);
		
		//The JEditorPane for the current color of the team selected
		teamColor.setBounds(360, 46, 21, 20);
		teamColor.setBorder(BorderFactory.createLineBorder(Color.BLACK));
		teamColor.setToolTipText("Team color");
		panel.add(teamColor);
		teamColor.setEditable(false);
		
		//The label for choosing the counselor to be edited
		lblChooseCounselor.setBounds(32, 37, 89, 14);
		contentPanel.add(lblChooseCounselor);
		
		//The button for saving the changes made to the counselor
		btnSaveChanges.setToolTipText("Save changes made to counselor");
		btnSaveChanges.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				saveChanges(false);
			}
		});
		btnSaveChanges.setBounds(32, 317, 101, 23);
		contentPanel.add(btnSaveChanges);
		
		//Button to reset all changes made
		btnReset.setToolTipText("Reset changes made to this counselor");
		btnReset.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				reset();
			}
		});
		btnReset.setBounds(143, 317, 89, 23);
		contentPanel.add(btnReset);
		
		//Button to delete the current selected counselor
		btnDelete.setToolTipText("Delete the selected counselor");
		btnDelete.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Counselor counsToDelete = (Counselor) counsChooser.getSelectedItem();
				
				for(int i = 0; i < pv.tables.size(); i++) {
					Table t = pv.tables.get(i);
					
					if(t.getCounselor() == counsToDelete) {
						t.setCounselor(null);
					}
				}
				
				pv.counselors.remove(counsToDelete);
				updateChooser();
				reset();
			}
		});
		btnDelete.setBounds(239, 53, 89, 23);
		contentPanel.add(btnDelete);
		
		//What to do when the okay button is clicked
		okButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				saveChanges(true);
			}
		});
		
		//What to do when cancel button is clicked
		cancelButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				resetAndDispose();
			}
		});
		
		setBackgroundColor(Constants.BACKGROUND);
		setFontColor(Constants.FONT_COLOR);
	}