package schedule; import javax.swing.*; import java.awt.*; import java.awt.event.*; /**** * * ScheduleUI is the top-level class for prototype GUIs related to Calendar Tool * schedule commands. This is a simple prototype version that constructs a * menu with JMenu items, but without any action listeners except for menu * item. * */ public class ScheduleUI { /** * Construct the menu and a schedule apppointment dialog. */ public ScheduleUI() { scheduleMenu = new ScheduleMenu(this); apptDialog = new ScheduleAppointmentDialog(); } /** * Return this' menu. */ public JMenu getMenu() { return scheduleMenu; } /** The pulldown menu. */ protected JMenu scheduleMenu; /** The schedule appointment dialog. */ protected JFrame apptDialog; }