All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.TextInDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----javaParse.TextInDialog
- public class TextInDialog
- extends Dialog
- implements ActionListener
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.
-
height
- Height of dialog window
-
width
- Width of dialog window
-
TextInDialog(String, String[], ActionListener[], Frame, String)
- Creates a modal dialog containing a text message and some buttons.
-
TextInDialog(String, String[], ActionListener[], Frame, String, boolean)
- Creates a dialog containing a text message and some buttons.
-
actionPerformed(ActionEvent)
-
-
getPushedButton()
-
-
paint(Graphics)
- Paints the message line by line.
width
protected int width
- Width of dialog window
height
protected int height
- Height of dialog window
TextInDialog
public TextInDialog(String message,
String buttons[],
ActionListener listeners[],
Frame parent,
String title)
- Creates a modal dialog containing a text message and some buttons.
TextInDialog
public TextInDialog(String message,
String buttons[],
ActionListener listeners[],
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
getPushedButton
public String getPushedButton()
actionPerformed
public void actionPerformed(ActionEvent e)
All Packages Class Hierarchy This Package Previous Next Index