Class com.tdac.tools.AppletFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.tdac.tools.AppletFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----com.tdac.tools.AppletFrame

public class AppletFrame
extends Frame
This class is used to construct a frame window for an applet, providing a simple mechanism for allowing an applet to be run as an application.
Version:
1.0, 11/11/96
Author:
Timothy D. A. Cox

Constructor Index

 o AppletFrame(String)
constructor needed to pass window title to class Frame

Method Index

 o floatApplet(String, Applet, Panel)
 o handleEvent(Event)
trap the WINDOW_DESTROY event to allow window close
 o startApplet(String, String, String[], int, int, int, int)
Start the applet inside a frame window
 o stopApplet(String)
Stop the applet
 o unfloatApplet(Applet, Panel)

Constructors

 o AppletFrame
  public AppletFrame(String name)
constructor needed to pass window title to class Frame

Methods

 o stopApplet
  public static void stopApplet(String className)
Stop the applet
Parameters:
className - string name of the applet class to be stopped
 o startApplet
  public static void startApplet(String className,
                                 String title,
                                 String args[],
                                 int posx,
                                 int posy,
                                 int width,
                                 int height)
Start the applet inside a frame window
Parameters:
className - string name of the applet class
title - string name for the title bar
applet - parameters
posx - horizontal location
posy - vertical position
width - width
height - height
 o handleEvent
  public boolean handleEvent(Event e)
trap the WINDOW_DESTROY event to allow window close
Parameters:
e - event
Overrides:
handleEvent in class Component
 o floatApplet
  public static void floatApplet(String t,
                                 Applet a,
                                 Panel p)
 o unfloatApplet
  public static void unfloatApplet(Applet a,
                                   Panel p)

All Packages  Class Hierarchy  This Package  Previous  Next  Index