All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class IMSWG.IU.AppletFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----IMSWG.IU.AppletFrame

public class AppletFrame
extends Frame
This class provides a framework for running applets within a Frame, allowing you to run an applet as a stand-alone application. To use this class, add the following main() to your applet:
 static public void main(String[] args) {
      new AppletFrame((Applet) new YourApplet(), width, height);
 }
 


Constructor Index

 o AppletFrame(Applet, int, int)
This method creates a frame, titles it, and sizes it appropriately.

Method Index

 o handleEvent(Event)
This method handles the "close" event for the frame.

Constructors

 o AppletFrame
 public AppletFrame(Applet a,
                    int x,
                    int y)
This method creates a frame, titles it, and sizes it appropriately. It then adds the applet to itself and runs it.

Parameters:
a - The applet to be run
x - The window width
y - The window height

Methods

 o handleEvent
 public boolean handleEvent(Event e)
This method handles the "close" event for the frame.

Parameters:
e - The Event to be handled.
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index