All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaParse.DFATextInDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----javaParse.ThreadDialog
                                           |
                                           +----javaParse.DFATextInDialog

public class DFATextInDialog
extends ThreadDialog
This is a modal Dialog in which some centered text is displayed and a number of buttons are placed at the bottom. When one of these buttons is pressed, the dialog is hidden and the label of the pressed button can be obtained by calling getPushedButton.


Variable Index

 o buttons
Labels of the buttons in the dialog window.
 o height
Height of dialog window
 o message
Text to be displayed in the dialog window.
 o width
Width of dialog window

Constructor Index

 o DFATextInDialog(String, String[], Frame, String)
Creates a modal dialog containing a text message and some buttons.
 o DFATextInDialog(String, String[], Frame, String, boolean)
Creates a dialog containing a text message and some buttons.

Method Index

 o paint(Graphics)
Paints the message line by line.

Variables

 o message
 protected String message
Text to be displayed in the dialog window.

 o width
 protected int width
Width of dialog window

 o height
 protected int height
Height of dialog window

 o buttons
 protected String buttons[]
Labels of the buttons in the dialog window.

Constructors

 o DFATextInDialog
 public DFATextInDialog(String message,
                        String buttons[],
                        Frame parent,
                        String title)
Creates a modal dialog containing a text message and some buttons.

 o DFATextInDialog
 public DFATextInDialog(String message,
                        String buttons[],
                        Frame parent,
                        String title,
                        boolean modal)
Creates a dialog containing a text message and some buttons. If parameter modal is true, the dialog is modal.

Methods

 o paint
 public void paint(Graphics g)
Paints the message line by line.

Overrides:
paint in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index