Class pmr.simplegraph.SimpleFrame
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.simplegraph.SimpleFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----pmr.simplegraph.SimpleFrame
- public class SimpleFrame
- extends Frame
A simple Frame with optional menu; might contain an Applet or Panel
- Author:
- (C) P. Murray-Rust, 1996
-
SimpleFrame(String)
- construct a SimpleFrame.
-
action(Event, Object)
- This is messy because Java doesn't have a callback mechanism
- still under development...
-
addMenuBar()
- add a menu bar and display it.
-
getFontMetrics()
-
-
handleEvent(Event)
-
-
setExitOnAllKilled(boolean)
- configure application so that when all SimpleFrames are killed the
applications exits
SimpleFrame
public SimpleFrame(String title)
- construct a SimpleFrame.
addMenuBar
public MenuBar addMenuBar()
- add a menu bar and display it. The default has "File" and
"Help" menus but minimal menu items in them (normally File|Quit and
Help|aboutCML. These can be manipulated with
the tools in Util (e.g. getMenu)
setExitOnAllKilled
public static void setExitOnAllKilled(boolean e)
- configure application so that when all SimpleFrames are killed the
applications exits
action
public boolean action(Event e,
Object arg)
- This is messy because Java doesn't have a callback mechanism
- still under development...
- Overrides:
- action in class Component
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
getFontMetrics
public FontMetrics getFontMetrics()
All Packages Class Hierarchy This Package Previous Next Index