Java JOptionPane Warning showWarningMessage(Component parent, String str)

Here you can find the source of showWarningMessage(Component parent, String str)

Description

Show warning message.

License

Open Source License

Declaration

public static void showWarningMessage(Component parent, String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.*;
import javax.swing.*;

public class Main {
    /**// ww  w .ja v  a 2s  .co m
     * Show warning message.
     */
    public static void showWarningMessage(Component parent, String str) {
        JOptionPane.showMessageDialog(parent, str, "Warning!",
                JOptionPane.WARNING_MESSAGE);
    }
}

Related

  1. showWarning(String message)
  2. showWarning(String message)
  3. showWarningBox(Component pParent, String pMessage, String pTitle)
  4. showWarningConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption)
  5. showWarningMessage(Component parent, String str)
  6. showWarningMessage(final Window aParent, final String aMessage)
  7. showWarningMessage(String message, Component component)
  8. showWarningMessage(String title, String message, java.awt.Component parent)
  9. warn(Component parent, String message)