COMTORJ2ME




QUICK STARTUP

STEP 1

Create the main MIDlet you must implements realStar method calling the first Displayable

import net.comtor.j2me.gui.*;
import form.*;

public class Project extends net.comtor.j2me.midlet.MIDletTemplate {
   
    public Project(){
        super();
    }
   
    public void realStart() {
        GlobalGui.setCurrentDisplay(new InitApplication());
    }
   
}


STEP 2

Make the first Displayable: InitApplication

In this example InitApplication Splash logo.png and write Welcome message

package form;
import net.comtor.j2me.gui.*;

public class InitApplication extends GraphicsMessageCanvas implements Runnable{
    public InitApplication (){
        super("/logo.png");
        setTitle("Application");
        Thread th = new Thread(this);
        th.start();
    }
   
    public void run() {
        setMessage("Welcome to Application");
        GlobalGui.gsleep(1000);
        setMessage("Starting");
       
GlobalGui.setCurrentDisplay(new OtherDisplayable());
    }
}


STEP 3

You must implements "OtherDisplayable s"  following your bussines logic.  comtorJ2ME provides to you several classes that simplifies Form and Canvas creation.





Bogota - Colombia   http://www.comtor.net 
jaimeurieltorres  @ hotpop . com

SourceForge.net Logo