All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.contrib.ContribFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----jclass.contrib.ContribFrame

public class ContribFrame
extends Frame
ContribFrame is a Frame subclass which responds to WINDOW_CLOSE events, and sets the focus to its first child. A Frame is a top-level window with a title. The default layout for a frame is BorderLayout.


Constructor Index

 o ContribFrame()
Creates a frame.
 o ContribFrame(String)
Creates a Frame with the specified title.

Method Index

 o add(Component)
Adds the specified component to this frame in the "Center" position.
 o close(Event)
Closes the window.
 o getExitOnClose()
Gets the ExitOnClose value.
 o getFirstChild()
Returns the first child which can accept keyboard focus.
 o handleEvent(Event)
Calls close if a WINDOW_DESTROY event is passed.
 o setExitOnClose(boolean)
Determines whether the application should exit when the user closes the frame or when close() is called (default: true).
 o show()
Sets the focus to the first child.

Constructors

 o ContribFrame
  public ContribFrame()
Creates a frame.

 o ContribFrame
  public ContribFrame(String title)
Creates a Frame with the specified title.

Methods

 o getExitOnClose
  public boolean getExitOnClose()
Gets the ExitOnClose value.

See Also:
setExitOnClose
 o setExitOnClose
  public void setExitOnClose(boolean v)
Determines whether the application should exit when the user closes the frame or when close() is called (default: true). If set to false, the frame is hidden; it can be made visible later by calling show().

See Also:
close, show
 o add
  public Component add(Component comp)
Adds the specified component to this frame in the "Center" position.

Overrides:
add in class Container
 o getFirstChild
  public Component getFirstChild()
Returns the first child which can accept keyboard focus.

 o show
  public synchronized void show()
Sets the focus to the first child.

Overrides:
show in class Window
 o close
  public void close(Event ev)
Closes the window. If ExitOnClose is true, the application is exited via System.exit().

See Also:
setExitOnClose
 o handleEvent
  public boolean handleEvent(Event ev)
Calls close if a WINDOW_DESTROY event is passed.

Overrides:
handleEvent in class Component
See Also:
close

All Packages  Class Hierarchy  This Package  Previous  Next  Index