/*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 SchedulerApplet extends Applet { public void init() { setLayout(new BorderLayout()); Panel p = new Panel(); p.setLayout(new GridLayout(3,2)); p.add(new Button("Add Faculty Schedule")); p.add(new Button("Edit Faculty Schedule")); p.add(new Button("Show All Faculty Schedules")); p.add(new Button("Show individual Schedule")); p.add(new Button("Find Meeting Time")); p.add(new Button("Notify Faculty via Email")); add("Center", p); }// END init public boolean action (Event e, Object arg) { if (e.target instanceof Button) { String label = (String)arg; if (label.equals ("Add Faculty Schedule")) { Frame f = new Frame("Add Faculty Schedule"); f.show(); addWindow Add = new addWindow(this, f, "Add Schedule"); Add.resize(220, 150); Add.show(); return true; } else if (label.equals ("Edit Faculty Schedule")) { Frame f = new Frame("Edit Faculty Schedule"); f.show(); editWindow Edit = new editWindow(this,f,"Edit Faculty Schedule); Edit.resize(220,150); Edit.show() return true; } else if (label.equals ("Show All Faculty Schedules")) { Frame f = new Frame("Show All Faculty Schedules"); f.show(); showAllWindow ShowAll = new showAllWindow(this, f, "Show All Faculty Schedules"); ShowAll.resize(220, 150); ShowAll.show(); return true; } else if (label.equals ("Show Individual Schedule")) { Frame f = new Frame("Show Individual Schedule"); f.show(); showIndWindow ShowInd = new showIndWindow(this,f,"Show Individual Schedule"); ShowInd.resize(220, 150); ShowInd.show(); return true; } else if (label.equals ("Find Meeting Time")) { Frame f = new Frame("Find Meeting Time"); f.show(); findMeetingWindow FindMeeting = new findMeetingWindow(this,f, "Find Meeting Time"); FindMeeting.resize(220,150); FindMeeting.show(); return true; } else if (label.equals ("Notify Faculty via Email")) { Frame f = new Frame("Notify Faculty via Email")) f.show(); notifyFacultyWindow NotifyFaculty = new notifyFacultyWindow(this,f,"Notify Faculty via Email"); NotifyFaculty.resize(220, 150); NotifyFaculty.show() return true; } return false; } } //END OF SchedulerApplet