Java JOptionPane Error showError(String msg, String title)

Here you can find the source of showError(String msg, String title)

Description

show Error

License

Apache License

Declaration

public static void showError(String msg, String title) 

Method Source Code


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

import javax.swing.*;

public class Main {

    public static void showError(String msg, String title) {
        JDialog dialog = new JDialog();
        dialog.setAlwaysOnTop(true);//from w  ww.ja  v a  2 s  . c  o  m
        JOptionPane.showMessageDialog(dialog, msg, title, JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. showError(JFrame owner, ImageIcon image, String title, String message, String text)
  2. showError(String errorMsg)
  3. showError(String macAddress, String message)
  4. showError(String message)
  5. showError(String message)
  6. showError(Throwable e)
  7. showError(Window parent)
  8. showErrorBox(Component aParent, String aTitle, String aMessage)
  9. showErrorBox(Component pParent, String pMessage, String pTitle)