Class MainWindow

Class MainWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----MainWindow

class MainWindow
extends Frame
This class is responsible for creating all of the menus and instantiating a ControlPanel and an IndexPanel.
See Also:
ControlPanel, IndexPanel

Variable Index

 o cp
 o ip

Constructor Index

 o MainWindow()
Constructs the menus and two sub-panels.

Method Index

 o action(Event, Object)
Trap menu events and call the appropriate method.
 o handleEvent(Event)
 o selectedAbout()
Show the user who wrote the software and who his advisor is
 o selectedExit()
Open a dialog that asks the user if they really want to quit.
 o selectedHelp()
Open the lilgpHelp subsystem.
 o selectedOpen()
This method is called when the user selects File -> Open
 o selectedSaveAs()
This method is called when the user selects File -> SaveAs
 o show()

Variables

 o cp
  public ControlPanel cp
 o ip
  public IndexPanel ip

Constructors

 o MainWindow
  public MainWindow()
Constructs the menus and two sub-panels.

Methods

 o show
  public synchronized void show()
Overrides:
show in class Window
 o handleEvent
  public boolean handleEvent(Event event)
Overrides:
handleEvent in class Component
 o action
  public boolean action(Event event,
                        Object arg)
Trap menu events and call the appropriate method.
Overrides:
action in class Component
See Also:
selectedAbout, selectedExit, selectedOpen, selectedSaveAs
 o selectedOpen
  public void selectedOpen()
This method is called when the user selects File -> Open
 o selectedSaveAs
  public void selectedSaveAs()
This method is called when the user selects File -> SaveAs
 o selectedExit
  public void selectedExit()
Open a dialog that asks the user if they really want to quit.
 o selectedAbout
  public void selectedAbout()
Show the user who wrote the software and who his advisor is
 o selectedHelp
  public void selectedHelp()
Open the lilgpHelp subsystem.