public void giveSchedule(LinkedList<Semester> semesters, int i) {

		if (i < 1 || i > 5) { //if i is not within acceptable range
			System.out.println("Error! Passing invalid value for integer. [1-5] inclusive.");
			System.exit(1);
		}

		if (semesters == null) {
			System.out.println("Null semester list. No schedule given.");
			System.exit(1);
		}
		//set the scaling on the window
		OFFSET = WIDTH / semesters.size();

		VERTOFF = HEIGHT / (8);

		//setup the tabbedPane to hold all 5 of the schedules
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(0, 0, HEIGHT, WIDTH);
		getContentPane().add(tabbedPane);


		//set up and draw the first schedule panel
		if (i == 1) {
			JPanel firstschedule = new JPanel();
			firstschedule.setPreferredSize(new Dimension(175*semesters.size(),1200));
			firstschedule.setLayout(null);
			//scrollPane to wrap around first panel
			JScrollPane firstscroll = new JScrollPane(firstschedule, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
					ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
			tabbedPane.addTab("Schedule 1", icon, firstscroll, null);

			drawSchedule(semesters, firstschedule);
		}

		//set up the second schedule panel
		if (i == 2) {
			JPanel secondschedule = new JPanel();
			secondschedule.setPreferredSize(new Dimension(175*semesters.size(), 1200));
			secondschedule.setLayout(null);

			JScrollPane secondscroll = new JScrollPane(secondschedule, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
					ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
			tabbedPane.addTab("Schedule 2", icon, secondscroll, null);

			drawSchedule(semesters, secondschedule);
		}

		//setup and draw the third schedule
		if (i == 3) {
			JPanel thirdschedule = new JPanel();
			thirdschedule.setPreferredSize(new Dimension(175*semesters.size(), 1200));
			thirdschedule.setLayout(null);

			JScrollPane thirdscroll = new JScrollPane(thirdschedule, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
					ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
			tabbedPane.addTab("Schedule 3", icon, thirdscroll, null);

			drawSchedule(semesters, thirdschedule);
		}

		//setup and draw the fourth schedule
		if (i == 4) {
			JPanel fourthschedule = new JPanel();
			fourthschedule.setPreferredSize(new Dimension(175*semesters.size(),1200));
			fourthschedule.setLayout(null);

			JScrollPane fourthscroll = new JScrollPane(fourthschedule, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
					ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
			tabbedPane.addTab("Schedule 4", icon, fourthscroll, null);

			drawSchedule(semesters, fourthschedule);

		}

		//setup and draw the fifth schedule
		if (i == 5) {
			JPanel fifthschedule = new JPanel();
			fifthschedule.setPreferredSize(new Dimension(175*semesters.size(),1200));
			fifthschedule.setLayout(null);

			JScrollPane fifthscroll = new JScrollPane(fifthschedule, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
					ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
			tabbedPane.addTab("Schedule 5", icon, fifthscroll, null);

			drawSchedule(semesters, fifthschedule);
		}

		//adjust the tabs if using another OS to keep it somewhat neater
		if (!System.getProperty("os.name").equals("Mac OS X") ) {
			System.out.println("Hi SAM");
			tabbedPane.setTabPlacement(JTabbedPane.LEFT);
			tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
		}


	}