Java JOptionPane Warning warn(Component parent, String message)

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

Description

warn

License

Apache License

Declaration

public static void warn(Component parent, String message) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Component;

import javax.swing.JOptionPane;

public class Main {

    public static void warn(Component parent, String message) {
        JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);
    }//  w w w. j  a  va 2  s.  co m
}

Related

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