Java JOptionPane Warning showWarning(String message)

Here you can find the source of showWarning(String message)

Description

show Warning

License

Open Source License

Declaration

public static void showWarning(String message) 

Method Source Code

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

import javax.swing.JDialog;
import javax.swing.JOptionPane;

public class Main {
    public static void showWarning(String message) {
        //custom title, warning icon

        JOptionPane.showMessageDialog(new JDialog(), message, "Warning", JOptionPane.WARNING_MESSAGE);
    }//from   ww  w.  j a  v a  2  s .  com
}

Related

  1. showPrettyWarningPromptPane(Component caller, String msg)
  2. showWarning(Component owner, String msg)
  3. showWarning(Component parent, String title, String message)
  4. showWarning(final Component rootComponent, final String message, final String title)
  5. showWarning(final String message)
  6. showWarning(String message)
  7. showWarningBox(Component pParent, String pMessage, String pTitle)
  8. showWarningConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption)
  9. showWarningMessage(Component parent, String str)