/*Millersville University Faculty Scheduler System Written by: Joye E.Mills, Fall 1996 Purpose: This java applet has been written to allow the MU Faculty to: (a) Input their schedule for a given semester (b) Update their schedule (c) Show all faculty members schedules (d) Show a particular faculty member's schedule (e) Show all the available times and days that any N number of faculty members can meet (f) Notify the parties of the meeting request by e-mail */ //************************************************************************* import java.applet.*; import java.util.*; import java.awt.*; public class Schedule extends Frame { public Schedule() { GridBagLayout grid = new GridBagLayout(); setLayout(grid); GridBagConstraints gbc = new GridBagConstraints(); gbc. fill = GridBagConstraints.BOTH; gbc.weightx = 100; gbc.weighty = 100; add(new Label("Course"), grid, gbc, 0,0,1,1); add(new Label("Monday"), grid, gbc, 1,0,1,1); add(new Label("Tuesday"), grid, gbc, 2,0,1,1); add(new Label("Wednesday"), grid, gbc, 3,0,1,1); add(new Label("Thursday"), grid, gbc, 4,0,1,1); add(new Label("Friday"), grid, gbc, 5,0,1,1); add(new Label("8:00am"), grid, gbc, 0,1,1,1); add(new Label("8:30am"), grid, gbc, 1,1,1,1); } private void add(Component c, GridBagLayout grid, GridBagConstraints gbc, int x, int y, int w, int h) { gbc.gridx = x; gbc.gridy = y; gbc.gridwidth = w; gbc.gridheight = h; grid.setConstraints(c, gbc); add(c); } // Method used to Read in a schedule from a flat data file. public void ReadSchedule(DataInput in) throws IOException { String line = in.readLine(); if (line == null) return; StringTokenizer t = new StringTokenizer(line, "|"); String name = t.nextToken(); String day = t.nextToken(); String start = t.nextToken(); String stop = t.nextToken(); String desc = t.nextToken(); } //END ReadSchedule }//END OF Schedule