btnDeleteApptView_Appointment = new JButton("Delete Appt.");
		btnDeleteApptView_Appointment.setFont(new Font("Lucida Grande",
				Font.PLAIN, 15));
		btnDeleteApptView_Appointment.setEnabled(false);
		btnDeleteApptView_Appointment.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {

				Appointment appointment = null;

				int row = tableSaturday_Appointments.getSelectedRow();
				if (row != -1) {
					appointment = Saturday_Appointments.get(row);
				} else {
					row = tableFriday_Appointments.getSelectedRow();
					if (row != -1) {
						appointment = Friday_Appointments.get(row);
					} else {
						row = tableThursday_Appointments.getSelectedRow();
						if (row != -1) {
							appointment = Thursday_Appointments.get(row);
						} else {
							row = tableWednesday_Appointments.getSelectedRow();
							if (row != -1) {
								appointment = Wednesday_Appointments.get(row);
							} else {
								row = tableTuesday_Appointments
										.getSelectedRow();
								if (row != -1) {
									appointment = Tuesday_Appointments.get(row);
								} else {
									row = tableMonday_Appointments
											.getSelectedRow();
									if (row != -1) {
										appointment = Monday_Appointments
												.get(row);
									}
								}
							}
						}
					}
				}

				int dialogButton = JOptionPane.YES_NO_OPTION;
				int dialogResult = JOptionPane.showConfirmDialog(null,
						"Are you sure you want to delete this appointment?",
						"Warning", dialogButton);
				if (dialogResult == JOptionPane.YES_OPTION) {

					appointment.deleteAppointment();
					updateViewAppointment(null);
					btnDeleteApptView_Appointment.setEnabled(false);

					try {
						refreshAppointments();
					} catch (SQLException e1) {
						e1.printStackTrace();
					}
				}
			}
		}