# 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

##

cp
ip

##

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

##

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

##

cp

      public ControlPanel cp

ip

      public IndexPanel ip

##

MainWindow

      public MainWindow()

  Constructs the menus and two sub-panels.

##

show

      public synchronized void show()

Overrides:
  show in class Window

handleEvent

      public boolean handleEvent(Event event)

Overrides:
  handleEvent in class Component

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

selectedOpen

      public void selectedOpen()

  This method is called when the user selects `File -> Open`

selectedSaveAs

      public void selectedSaveAs()

  This method is called when the user selects `File -> SaveAs`

selectedExit

      public void selectedExit()

  Open a dialog that asks the user if they really want to quit.

selectedAbout

      public void selectedAbout()

  Show the user who wrote the software and who his advisor is

selectedHelp

      public void selectedHelp()

  Open the lilgpHelp subsystem.