Here you can find the source of printErrorMessageAndExit(String message)
public static void printErrorMessageAndExit(String message)
//package com.java2s; //License from project: BSD License import javax.swing.JOptionPane; public class Main { public static void printErrorMessageAndExit(String message) { JOptionPane.showMessageDialog(null, message); System.exit(1);// w w w . j av a2 s . c o m } }