/*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 test extends Dialog { protected SchedulerApplet s; public test(SchedulerApplet s, Frame parent, String title) { super(parent, title, false); this.setLayout(new BorderLayout()); this.s = s; Panel p1 = new Panel(); Label prompt1 = new Label("Select a faculty member: "); Choice faculty = new Choice(); faculty.addItem("Davis"); faculty.addItem("Webster"); faculty.addItem("Hutchens"); faculty.addItem("Mertz"); faculty.addItem("Chaudhary"); faculty.addItem("Liffick"); faculty.addItem("Ross"); Label prompt2 = new Label("Commitment: "); TextField desc = new TextField("", 20); Button done = new Button("DONE"); p1.add(prompt1); p1.add(faculty); p1.add(prompt1); p1.add(desc); p1.add(done); this.add("Center", p1); this.resize(220, 150); p1.show(); this.pack(); this.show(); } public boolean action (Event e, Object arg) { if (e.target instanceof Button) { String label = (String)arg; if (label.equals ("DONE")) { if (this.isShowing()) { this.hide(); this.dispose(); return true; } } } return false; } }//END OF Schedule