Java JOptionPane Error alertValidationError(final Component sourceComponent, final String message)

Here you can find the source of alertValidationError(final Component sourceComponent, final String message)

Description

alert Validation Error

License

Open Source License

Declaration

public static void alertValidationError(final Component sourceComponent, final String message) 

Method Source Code


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

import java.awt.Component;

import javax.swing.*;

public class Main {
    public static void alertValidationError(final Component sourceComponent, final String message) {
        JOptionPane.showMessageDialog(sourceComponent,
                "Hold on.." + " Few values seems to be incorrect.!! Please correct them..\n" + message,
                "VALIDATION FAILED", JOptionPane.ERROR_MESSAGE);
    }/*ww  w  .  j  a va  2  s . c  o m*/
}

Related

  1. askForAStringInArray(String question, String header, Object[] options, String errorMessage, String errorHeader)
  2. askForAStringInArrayReturning(String question, String header, T[] options, String errorMessage, String errorHeader)
  3. contChoose(final Component parent, final String title, final String message, final String noContMsg, boolean cont, boolean error)
  4. createAndShowErrorPanel(String title, Map messages)