Java JOptionPane Warning warn(Component parent, String message)

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

Description

warn

License

Open Source License

Declaration

public static void warn(Component parent, String message) 

Method Source Code


//package com.java2s;
/*/*from   ww w. j av  a  2  s.  com*/
 * @(#)Util.java
 * 
 * Created on 2005. 12. 15
 *
 *   This software is the confidential and proprietary informatioon of
 *   POSTECH DP&NM. ("Confidential Information"). You shall not
 *   disclose such Confidential Information and shall use it only in
 *   accordance with the terms of the license agreement you entered into
 *   with Eric Kang.
 *
 *   Contact: Eric Kang at eliot@postech.edu
 */

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

public class Main {
    public static void warn(Component parent, String message) {
        JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);
    }
}

Related

  1. showWarningMessage(Component parent, String str)
  2. showWarningMessage(final Window aParent, final String aMessage)
  3. showWarningMessage(String message, Component component)
  4. showWarningMessage(String title, String message, java.awt.Component parent)
  5. warn(Component parent, String message)
  6. warn(Component parent, String message)
  7. warn(String message)
  8. warning(String message, Component parent)
  9. warning(String Msg)