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
-
AppletFrame(String)
- constructor needed to pass window title to class Frame
-
floatApplet(String, Applet, Panel)
-
-
handleEvent(Event)
- trap the WINDOW_DESTROY event to allow window close
-
startApplet(String, String, String[], int, int, int, int)
- Start the applet inside a frame window
-
stopApplet(String)
- Stop the applet
-
unfloatApplet(Applet, Panel)
-
AppletFrame
public AppletFrame(String name)
- constructor needed to pass window title to class Frame
stopApplet
public static void stopApplet(String className)
- Stop the applet
- Parameters:
- className - string name of the applet class to be stopped
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
handleEvent
public boolean handleEvent(Event e)
- trap the WINDOW_DESTROY event to allow window close
- Parameters:
- e - event
- Overrides:
- handleEvent in class Component
floatApplet
public static void floatApplet(String t,
Applet a,
Panel p)
unfloatApplet
public static void unfloatApplet(Applet a,
Panel p)
All Packages Class Hierarchy This Package Previous Next Index