SecondMIDlet.java


Back
package com.j2me.salsa.midletsuite;

/**
 * MIDlet2.Java
 * @author j2meSalsa.com
 * 2nd MIDlet of MIDlet Suite.
 */

//Midlet's User interface API
import javax.microedition.lcdui.Display;

//Midlet class's package
import javax.microedition.midlet.MIDlet;

public class SecondMIDlet extends MIDlet{

 /**
  * Midlet constructor is called and the objects are instantiated.
  * Midlet enters paused state
  * */

    public SecondMIDlet() {
    	
    	HelloWorldForm helloForm = new HelloWorldForm("Hello World From Midlet 2", this);
    	Display.getDisplay(this).setCurrent(helloForm);

    }

    /**
     * startApp() method is called to change the paused state to active state.
     */

    protected void startApp() {

        
    }

    /**
     * The MIDlet frees as much resources as it can.
     */

    protected void pauseApp() {}

    /**
     * Midlet cleans up resources before the application exits.
     *
     */

    protected void destroyApp(boolean bool) {}

}

Back

This page is a part of a frames based web site. If you have landed on this page from a search engine click here to view the complete page.