View Javadoc

1   /***
2    * 
3    */
4   package org.telscenter.pas.ui.dialog;
5   
6   import javax.swing.JFrame;
7   
8   /***
9    * @author anthonyperritano
10   *
11   */
12  public class PasDialogHelper {
13  
14  	/***
15  	 * 
16  	 */
17  	public PasDialogHelper() {
18  		super();
19  		// TODO Auto-generated constructor stub
20  	}
21  
22  	public static void showErrorDialog(String message, JFrame frame) {
23  		PasErrorMessageDialogUI ui = new PasErrorMessageDialogUI();
24  	
25  		ui
26  				.setMessage(message);
27  		PasDialogManager.showPasMessageDialog("Error Message", ui
28  				.createDialogPanel(), frame );
29  	}
30  	
31  	public static void showMessageDialog(String message, JFrame frame) {
32  		PasErrorMessageDialogUI ui = new PasErrorMessageDialogUI();
33  	
34  		ui
35  				.setMessage(message);
36  		PasDialogManager.showPasMessageDialog("Pas Messasge", ui
37  				.createDialogPanel(), frame );
38  	}//
39  }