Java JOptionPane Error showError(Window parent)

Here you can find the source of showError(Window parent)

Description

show Error

License

Open Source License

Declaration

public static void showError(Window parent) 

Method Source Code

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

import java.awt.Window;

import javax.swing.JOptionPane;

public class Main {
    public static void showError(Window parent) {
        JOptionPane.showMessageDialog(parent,
                "The weight values must sum to 1.0!", "Error",
                JOptionPane.ERROR_MESSAGE);
    }/*from   w  w  w. ja  v  a  2s  .  c  om*/
}

Related

  1. showError(String macAddress, String message)
  2. showError(String message)
  3. showError(String message)
  4. showError(String msg, String title)
  5. showError(Throwable e)
  6. showErrorBox(Component aParent, String aTitle, String aMessage)
  7. showErrorBox(Component pParent, String pMessage, String pTitle)
  8. showErrorConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption)
  9. showErrorDialog(JFrame parent, Exception ex)