@SuppressWarnings("deprecation")
		@Override
		public void actionPerformed(ActionEvent e) {
			if(e.getSource() == btnGo) {
				if(!dayComboBox.getSelectedItem().equals("-")) {
					ViewAppointmentDatePanel vadp = new ViewAppointmentDatePanel(parent, username, Integer.parseInt((String) dayComboBox.getSelectedItem()),
							(String) monthComboBox.getSelectedItem(), Integer.parseInt((String) yearComboBox.getSelectedItem()));
					parent.getContentPane().add(vadp);
					CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
					cl.next(parent.getContentPane());
				} else {
					//Reset All labels
					for(JLabel l : labels) {
						l.setText("");
					}
					//Get the entire list of Appointments for this particular Doctor
					apptList = parent.getHandler().getAppointmentsForDoctor(username);
					ArrayList<Date> dateList = new ArrayList<Date>();
					int monthIndex = monthComboBox.getSelectedIndex();
					Object years = yearComboBox.getSelectedItem();
					int[] noVisits = new int[31];
					//Get the Number of Appointments for the selected Month and Year
					for(Appointment a : apptList) {
						int year = a.getDate().getYear()+1900;
						int month = a.getDate().getMonth();
						if(month == monthIndex && year == Integer.parseInt(years.toString())) {
							noVisits[a.getDate().getDate()]++;
							dateList.add(a.getDate());
						}
					}
					//Update the label for each affected date
					for(Date d : dateList) {
						Integer i = noVisits[d.getDate()];
						labels.get(d.getDate()).setText(i.toString());
					}

				}
			}
			else if(e.getSource() == btnBack){
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				parent.getContentPane().remove(parent.getContentPane().getComponents().length-1);
				cl.last(parent.getContentPane());
			}
		}