Class tinkerToy.MyFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index
source

Class tinkerToy.MyFrame

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

public class MyFrame
extends Frame
Base frame class which controls the creation and destruction of frames.

Constructor Index

 o MyFrame(String, MyBoolean)
Create a frame with the specified name, and update the MyBoolean flag to indicate the frame is now alive.
 o MyFrame(String, MyBoolean, Applet)
Create a frame which maintains a knowledge of the URL context of the original applet in order to display html pages in the browser.
 o MyFrame(String, Applet)
Construct a frame which does not have to track if it is already instantiated.

Method Index

 o action(Event, Object)
Catch the exit event.
 o handleEvent(Event)
Catch the window destroy event.
 o showDocument(String)
Show the specified document in the browser.
 o start()
Display the frame.

Constructors

 o MyFrame
  public MyFrame(String name,
                 MyBoolean b)
Create a frame with the specified name, and update the MyBoolean flag to indicate the frame is now alive.
 o MyFrame
  public MyFrame(String name,
                 MyBoolean b,
                 Applet a)
Create a frame which maintains a knowledge of the URL context of the original applet in order to display html pages in the browser.
 o MyFrame
  public MyFrame(String name,
                 Applet a)
Construct a frame which does not have to track if it is already instantiated.

Methods

 o action
  public boolean action(Event e,
                        Object o)
Catch the exit event.
Overrides:
action in class Component
 o handleEvent
  public boolean handleEvent(Event e)
Catch the window destroy event.
Overrides:
handleEvent in class Component
 o showDocument
  public void showDocument(String doc)
Show the specified document in the browser.
 o start
  public void start()
Display the frame.

All Packages  Class Hierarchy  This Package  Previous  Next  Index