Java JOptionPane Error error(String message, String title)

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

Description

error

License

Open Source License

Declaration

public static void error(String message, String title) 

Method Source Code


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

import javax.swing.JOptionPane;

public class Main {
    public static void error(String message) {
        error(message, "Error");
    }/*w w  w  .  j a v a  2  s.c  om*/

    public static void error(String message, String title) {
        JOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. error(Component parent, String message)
  2. error(Component parent, String message)
  3. error(Exception ex)
  4. error(final Component component, final Object msg)
  5. error(String message, Component parent)
  6. errorMessage(Component component, String title, String message)
  7. errorMessage(Component parent, Throwable t)
  8. errorMessage(Exception exceptionMsg, boolean quiet)
  9. exibeMsgErro(String msg)