Java JOptionPane Warning warn(String message)

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

Description

warn

License

Open Source License

Declaration

public static void warn(String message) 

Method Source Code


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

import javax.swing.JOptionPane;

public class Main {
    public static void warn(String message) {
        warn(message, "Warning");
    }//from   ww  w  . j a v a2 s  . co  m

    public static void warn(String message, String title) {
        JOptionPane.showMessageDialog(null, message, title, JOptionPane.WARNING_MESSAGE);
    }
}

Related

  1. showWarningMessage(String message, Component component)
  2. showWarningMessage(String title, String message, java.awt.Component parent)
  3. warn(Component parent, String message)
  4. warn(Component parent, String message)
  5. warn(Component parent, String message)
  6. warning(String message, Component parent)
  7. warning(String Msg)
  8. warning(String msg)
  9. warning(String title, Object message, JComponent parent)