Package org.sm.smtools.swing.dialogs
Class JMessageDialog
java.lang.Object
org.sm.smtools.swing.dialogs.JMessageDialog
public final class JMessageDialog
extends java.lang.Object
The
JMessageDialog
class pops up a standard dialog box containing a message.
Note that this class cannot be instantiated, nor can it be subclassed; use the static
show(java.awt.Component, java.lang.String)
method instead. A valid I18NL10N
database must
be available!
Depending on the application's current look-and-feel, the dialog box looks as follows:
Java Metal L&F
Microsoft Windows L&F
Motif L&F
Note that this class cannot be subclassed!
- Version:
- 06/08/2019
- Author:
- Sven Maerivoet
-
Method Summary
Modifier and Type Method Description static void
show(java.awt.Component parentComponent, java.lang.String message)
Pops up a up a standard dialog box containing a specified message.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
show
public static void show(java.awt.Component parentComponent, java.lang.String message)Pops up a up a standard dialog box containing a specified message.This method should be called as follows:
JMessageDialog.show(parent,message);
Note that a valid
I18NL10N
database must be available!- Parameters:
parentComponent
- the frame in which this dialog is to be displayedmessage
- a string containing a specified message
-