    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.

##

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

##

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

##

ContribFrame

     public ContribFrame()

  Creates a frame.

ContribFrame

     public ContribFrame(String title)

  Creates a Frame with the specified title.

##

getExitOnClose

     public boolean getExitOnClose()

  Gets the ExitOnClose value.

  See Also:
    setExitOnClose

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

add

     public Component add(Component comp)

  Adds the specified component to this frame in the "Center" position.

  Overrides:
    add in class Container

getFirstChild

     public Component getFirstChild()

  Returns the first child which can accept keyboard focus.

show

     public synchronized void show()

  Sets the focus to the first child.

  Overrides:
    show in class Window

close

     public void close(Event ev)

  Closes the window. If ExitOnClose is true, the application is exited via System.exit().

  See Also:
    setExitOnClose

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