Advertisement
Guest User

ejemploJ2

a guest
Sep 8th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. import javax.microedition.lcdui.Display;
  2. import javax.microedition.lcdui.Form;
  3. import javax.microedition.midlet.MIDlet;
  4. import javax.microedition.midlet.MIDletStateChangeException;
  5.  
  6.  
  7. public class namedetumidlet extends MIDlet {
  8.     public Form form;
  9.     public Display display;
  10.     public namedetumidlet() {
  11.        
  12.     }
  13.  
  14.     protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
  15.         // TODO Auto-generated method stub
  16.  
  17.     }
  18.  
  19.     protected void pauseApp() {
  20.         // TODO Auto-generated method stub
  21.  
  22.     }
  23.  
  24.     protected void startApp() throws MIDletStateChangeException {
  25.           form = new Form("Ejemplo1");
  26.           String msg = Saludos desde mi midlet J2ME,paz";
  27.           form.append(msg);
  28.           display = Display.getDisplay(this);
  29.           display.setCurrent(form);
  30.  
  31.     }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement