2012 Model of a Java Mobile

0

It's pretty old, but whoever wants to suggest new Java Mobile Programming scripts !!

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class ThiagoCardoso extends MIDlet {
Display meuDisplay = Display.getDisplay(this);
Form meuForm = new Form("Thiago & Janaina 2012");

    public void startApp() {
        System.out.println("Executando startApp"); // Startando o "startApp"
        meuDisplay.setCurrent(meuForm); // Exibindo o Formulário
        Graphics g = getGraphics();
    }

    public void paint(Graphics meuGrafico) {
        meuGrafico.drawRect(20, 30, 60, 70);
    }

    public void pauseApp() {
        System.out.println("Executando pauseApp");
    }

    public void destroyApp(boolean unconditional) {
        System.out.println("Executando destroyApp");
    }
} 
    
asked by anonymous 19.10.2018 / 19:04

0 answers