private void displayImmunizations(List petIDs) throws SQLException, ParseException{
		//get all pets that have immunization reminders
		List immunizationsNeeded = new ArrayList ();
		Statement state;
		String commandstring = "";
		ResultSet rs;
		String reminderMethod = "";
		String reminderFrequency = "";
		for(int i = 0; i < petIDs.size(); i++){
			state = DBConnection.OpenConnection();
			commandstring = String.format("SELECT Reminder_Frequency, Reminder_Method FROM Reminders WHERE Pet_ID = %d AND Reminder = 'immunization'", petIDs.get(i));
			rs = state.executeQuery(commandstring);
			while(rs.next()){
				immunizationsNeeded.add(petIDs.get(i));
				immunizationsNeeded.add(rs.getString("Reminder_Frequency"));
				immunizationsNeeded.add(rs.getString("Reminder_Method"));
			}
			rs.close();
			state.close();
		}
		
		//go through each one and check to see if we need to display a reminder
		for(int i = 0; i < immunizationsNeeded.size(); i += 3){
			state = DBConnection.OpenConnection();
			commandstring = String.format("SELECT Immunization, End_Date FROM Immunizations WHERE Pet_ID = %d", immunizationsNeeded.get(i));
			rs = state.executeQuery(commandstring);
			while(rs.next()){
				DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
				Date date = dateFormat.parse(rs.getString("End_Date"));
				String immunization = rs.getString("Immunization");
				boolean alertNeeded = immunizationUpcoming(immunization, date, (String)immunizationsNeeded.get(i+1));
				if(alertNeeded){
					String petName = "";
					Statement state2 = DBConnection.OpenConnection();
					commandstring = String.format("SELECT Name FROM Pets WHERE ID = %d", immunizationsNeeded.get(i));
					ResultSet rs2 = state2.executeQuery(commandstring);
					while(rs2.next()){
						petName = rs2.getString("Name");
					}
					state2.close();
					rs2.close();
					JOptionPane.showMessageDialog(panelAppointments, petName + "'s owner needs to have a " + immunizationsNeeded.get(i+2) + " sent to them for " + immunization);
				}
			}
			state.close();
			rs.close();
		}
	}