FlexOr.utility
Class WindowUtility
java.lang.Object
FlexOr.utility.WindowUtility
public class WindowUtility
- extends java.lang.Object
Method Summary |
static void |
createWindow(java.lang.String windowTitle,
java.lang.String windowClass,
int windowWidth,
int windowHeight,
java.awt.Button button)
Create a window in response to a button press. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowUtility
public WindowUtility()
createWindow
public static void createWindow(java.lang.String windowTitle,
java.lang.String windowClass,
int windowWidth,
int windowHeight,
java.awt.Button button)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.NoSuchMethodException
- Create a window in response to a button press. Very useful when applets
are big and you want it to run independently of a browser.
- Parameters:
windowTitle
- Title for the window.windowClass
- The class to run within the window.windowWidth
- Width of the window in pixels.windowHeight
- Height of the window in pixels.button
- The botton creating the window so it can be disabled when
the window is created. Enter null if there no such button or you do not
want button status to change.
- Throws:
java.lang.ClassNotFoundException
- when the windowClass passed could
not be found.
NotFrameSubclassException
- when windowClass is not a Frame subclass.
java.lang.IllegalAccessException
- when windowClass or its initializer
is not accessible. For example, when the no parameter class
constructor is not declared pooublic.
java.lang.InstantiationException
- when the class is abstract, an
interface or primitive type; or because of some other reason.
java.lang.NoSuchMethodException
- when the class does not have a
no parameter constructor.