Java JOptionPane Error error(Component parent, String message)

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

Description

error

License

Open Source License

Declaration

public static void error(Component parent, String message) 

Method Source Code


//package com.java2s;
/*/*from w  ww  .  j  a  v a 2 s.co m*/
 * @(#)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 error(Component parent, String message) {
        JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. errMsg(final Component owner, final String msg, final Throwable e)
  2. errMsg(final String msg)
  3. errMsg(String msg)
  4. error(Component comp, String title, String message, Object[] args)
  5. error(Component parent, Exception e)
  6. error(Component parent, String message)
  7. error(Exception ex)
  8. error(final Component component, final Object msg)
  9. error(String message, Component parent)