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.
-
buttons
- Labels of the buttons in the dialog window.
-
height
- Height of dialog window
-
message
- Text to be displayed in the dialog window.
-
width
- Width of dialog window
-
DFATextInDialog(String, String[], Frame, String)
- Creates a modal dialog containing a text message and some buttons.
-
DFATextInDialog(String, String[], Frame, String, boolean)
- Creates a dialog containing a text message and some buttons.
-
paint(Graphics)
- Paints the message line by line.
message
protected String message
- Text to be displayed in the dialog window.
width
protected int width
- Width of dialog window
height
protected int height
- Height of dialog window
buttons
protected String buttons[]
- Labels of the buttons in the dialog window.
DFATextInDialog
public DFATextInDialog(String message,
String buttons[],
Frame parent,
String title)
- Creates a modal dialog containing a text message and some buttons.
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.
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