Here you can find the source of alertValidationError(final Component sourceComponent, final String message)
public static void alertValidationError(final Component sourceComponent, final String message)
//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*/ }