package com.dw.swing.lib;

import javax.swing.JOptionPane;

public class MessageBox {
	
	public MessageBox() {
		
	}

	public static void show(String infoMessage, String titleBar)
    {
        JOptionPane.showMessageDialog(null, infoMessage, titleBar, JOptionPane.INFORMATION_MESSAGE);
    }
}

@@ -286,10 +286,358 @@
 ;%0A    %7D%0A
+%09%0A%09public static void warning(String infoMessage, String titleBar)%0A    %7B%0A        JOptionPane.showMessageDialog(null, infoMessage, titleBar, JOptionPane.WARNING_MESSAGE);%0A    %7D%0A%09%0A%09public static void error(String infoMessage, String titleBar)%0A    %7B%0A        JOptionPane.showMessageDialog(null, infoMessage, titleBar, JOptionPane.ERROR_MESSAGE);%0A    %7D%0A
 %7D%0A

add MessageBox for warning and error