
import java.io.IOException;
import javax.swing.JOptionPane;

public class ErrorBox {
	public static void main (String[] args) {

		JOptionPane eb = new JOptionPane ();
                String title;
                String message;

		if (args.length >= 1) {
			message = args[0];
		} else {
			message = " ";
		}

		if (args.length >= 2) {
			title = args[1];
		} else {
			title = "Error";
		}


		eb.showConfirmDialog(null,message,title,JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);
	}
}
