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.


Variable Index

 o height
Height of dialog window
 o width
Width of dialog window

Constructor Index

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

Method Index

 o actionPerformed(ActionEvent)
 o getPushedButton()
 o paint(Graphics)
Paints the message line by line.

Variables

 o width
 protected int width
Width of dialog window

 o height
 protected int height
Height of dialog window

Constructors

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

 o 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.

Methods

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

Overrides:
paint in class Container
 o getPushedButton
 public String getPushedButton()
 o actionPerformed
 public void actionPerformed(ActionEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index