All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.contrib.ContribDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----jclass.contrib.ContribDialog

public class ContribDialog
extends Dialog
ContribDialog is a Dialog subclass which responds to WINDOW_CLOSE events, and sets the focus to its first child. The default layout for a dialog is BorderLayout.


Constructor Index

 o ContribDialog(Frame, boolean)
Constructs an initially invisible Dialog.
 o ContribDialog(Frame, String, boolean)
Constructs an initially invisible Dialog with a title.

Method Index

 o add(Component)
Adds the specified component to this dialog in the "Center" position.
 o getFirstChild()
Returns the first child which can accept keyboard focus.
 o handleEvent(Event)
Calls hide if a WINDOW_DESTROY event is passed.
 o show()
Sets the focus to the first child.

Constructors

 o ContribDialog
 public ContribDialog(Frame parent,
                      boolean modal)
Constructs an initially invisible Dialog. A modal Dialog grabs all the input from the user.

Parameters:
parent - the owner of the dialog
modal - if true, dialog blocks input to other windows when shown
 o ContribDialog
 public ContribDialog(Frame parent,
                      String title,
                      boolean modal)
Constructs an initially invisible Dialog with a title. A modal Dialog grabs all the input from the user.

Parameters:
parent - the owner of the dialog
title - the title of the dialog
modal - if true, dialog blocks input to other windows when shown

Methods

 o add
 public Component add(Component comp)
Adds the specified component to this dialog 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 Dialog
 o handleEvent
 public boolean handleEvent(Event ev)
Calls hide if a WINDOW_DESTROY event is passed.

Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index