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.
-
ContribDialog(Frame, boolean)
- Constructs an initially invisible Dialog.
-
ContribDialog(Frame, String, boolean)
- Constructs an initially invisible Dialog with a title.
-
add(Component)
-
Adds the specified component to this dialog in the "Center" position.
-
getFirstChild()
- Returns the first child which can accept keyboard focus.
-
handleEvent(Event)
- Calls hide if a WINDOW_DESTROY event is passed.
-
show()
- Sets the focus to the first child.
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
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
add
public Component add(Component comp)
- Adds the specified component to this dialog 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 Dialog
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