• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME program

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body mail me the simplest program of J2ME so I can imagine the power of J2ME .

Please do it for us beginner .
Thanks .
 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class MyMIDlet extends MIDlet{

Display display = null;
Form form = null;

public MyMIDlet(){
}

public void startApp(){

display = Display.getDisplay(this);
form = new Form("Details");
display.setCurrent(form);
}

public void pauseApp(){
}

public void destroyApp(boolean value){
}
}

//it couldn't get any simpler than this
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Joel Karimpil://it couldn't get any simpler than this

Want to bet?
My simple J2ME program uses no variables. It's basically your three statements crunched on to one line.


You can find a full description here:
http://www.sprintdevelopers.com/article-17--0-0.html

William Frantz
http://SprintDevelopers.com
[ December 16, 2004: Message edited by: William Frantz ]
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What the program is doing ... i mean what special ...

thanks .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic