/*
 *AlertDemo program to show how to use an Alert Object
 *written by K. Banerjee
 *j2melbs.com
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class AlertDemo extends MIDlet {
	
	public void startApp() {
		Display display = Display.getDisplay(this);
		
		Alert alert = new Alert("title"); 	//constructs the alert with given title
		alert.setString("the message goes here");
		alert.setTimeout(Alert.FOREVER);	//timeouts might be finite too
		
		display.setCurrent(alert);
	}
	
	public void pauseApp() {}
	
	public void destroyApp(boolean unconditional) {}
}