borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

MessageDialog class

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Window
                           +----java.awt.Dialog
                                   +----borland.jbcl.control.ButtonDialog
                                           +----borland.jbcl.control.MessageDialog

About the MessageDialog class

Variables  Constructors  Properties  Methods  Event Listeners

Implements MenuContainer, ActionListener, KeyListener, ImageObserver, Serializable, EventListener

A message box. Used by the Message component.


MessageDialog variables

Variables implemented in this class

Variables implemented in borland.jbcl.control.ButtonDialog

Variables implemented in java.awt.Component

MessageDialog constructors

MessageDialog properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.control.ButtonDialog

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.awt.Dialog

Properties implemented in java.awt.Window

Properties implemented in java.lang.Object

MessageDialog methods

Methods implemented in borland.jbcl.control.ButtonDialog

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Dialog

Methods implemented in java.awt.Window

Methods implemented in java.lang.Object

MessageDialog event listeners


MessageDialog variables

message

  protected Label message

The text to display as the message in the message dialog.

messagePanel

  protected Panel messagePanel

The panel to show in the message dialog.


MessageDialog constructors

MessageDialog(java.awt.Frame)

  public MessageDialog(java.awt.Frame frame)
Constructs a message box with the specified parent frame, no title-bar text, and no message string.

Parameters:

frame
The parent frame for the message box.

MessageDialog(java.awt.Frame, java.lang.String)

  public MessageDialog(java.awt.Frame frame, java.lang.String title)
Constructs a message box with the specified parent frame and title-bar text, and no message string.

Parameters:

frame
The parent frame for the message box.
title
The title-bar text of the message box.

MessageDialog(java.awt.Frame, java.lang.String, java.lang.String)

  public MessageDialog(java.awt.Frame frame, java.lang.String title, java.lang.String msg)
Constructs a message box.

Parameters:

frame
The parent frame for the message box.
title
The title-bar text of the message box.
msg
The message string to display in the message box.

MessageDialog(java.awt.Frame, java.lang.String, java.lang.String, int)

  public MessageDialog(java.awt.Frame frame, java.lang.String title, java.lang.String msg, int buttonSet)
Constructs a message box.

Parameters:

frame
The parent frame for the message box.
title
The title-bar text of the message box.
msg
The message string to display in the message box.
buttonSet
0 - Has an OK button only.
1 - Has OK and Cancel buttons.
2 - Has Yes and No buttons.
3 - Has Yes, No, and Cancel buttons.


MessageDialog properties

message

 public String getMessage()
 public void setMessage(java.lang.String s)
The message string to display in the message box.


MessageDialog event listeners

This class is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)

window

 public synchronized void addWindowListener(java.awt.event.WindowListener l)
 public synchronized void removeWindowListener(java.awt.event.WindowListener l)