Class JWarningDialog

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

public final class JWarningDialog
extends java.lang.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 Summary

    Modifier and Type Method Description
    static void warn​(java.awt.Component parentComponent, java.lang.String warning)
    Pops up a up a standard dialog box containing a specified warning message.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • warn

      public static void warn​(java.awt.Component parentComponent, java.lang.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