Class JWarningDialog

java.lang.Object
org.sm.smtools.swing.dialogs.JWarningDialog

public final class JWarningDialog extends Object
The JWarningDialog class pops up a standard dialog box containing a warning.

Note that this class cannot be instantiated, nor can it be subclassed; use the static warn(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 Details

    • warn

      public static void warn(Component parentComponent, String warning)
      Pops up a up a standard dialog box containing a specified warning message.

      This method should be called as follows:

      JWarningDialog.warn(parent,warning);

      Note that a valid I18NL10N database must be available!

      Parameters:
      parentComponent - the frame in which this dialog is to be displayed
      warning - a string containing a specified warning message