Sun-microsystems J2ME Manual de usuario Pagina 20

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 134
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 19
8 J2ME Wireless Toolkit User’s Guide October 2004
If you are following along with the example project, create a new Java source file
TinyMIDlet.java. It should be saved in the source directory of your project,
which will be {toolkit} \apps\Tiny\src\TinyMIDlet.java where {toolkit} is the
installation directory of the toolkit. The contents of the file are a very simple
MIDlet:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class TinyMIDlet
extends MIDlet
implements CommandListener {
public void startApp() {
Display display = Display.getDisplay(this);
Form mainForm = new Form("TinyMIDlet");
mainForm.append("Welcome to the world of MIDlets!");
Command exitCommand = new Command("Exit", Command.EXIT, 0);
mainForm.addCommand(exitCommand);
mainForm.setCommandListener(this);
display.setCurrent(mainForm);
}
public void pauseApp () {}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable s) {
if (c.getCommandType() == Command.EXIT)
notifyDestroyed();
}
}
Save the file when you’re finished.
2.2.2 Build
The next step is to build your source code. The toolkit makes this part very easy.
In the KToolbar window, click on the Build button. Assuming you saved your
source file in the right place, the toolkit will find it and compile it. Compilation
errors are displayed in the KToolbar console. If you have errors, go back and edit
the source code to fix them. Once you’ve eliminated your errors, the KToolbar
console tells you the project was successfully built.
Vista de pagina 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 133 134

Comentarios a estos manuales

Sin comentarios

Ika MS 3 digital Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Ausrüstung Ika MS 3 digital.
Wir stellen 2 PDF-Handbücher Ika MS 3 digital zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Ausrüstung Ika

Modelle Dokumententyp
VORTEX 3 Bedienungsanleitung     IKA VORTEX 3 User Manual, 36 Seiten
Vibrax VXR basic Bedienungsanleitung     IKA Vibrax VXR basic User Manual, 16 Seiten
RW 47 digital Bedienungsanleitung   IKA RW 47 digital Manuel d'utilisation, 17 Seiten
MTS 2/4 digital Bedienungsanleitung     IKA MTS 2/4 digital User Manual, 20 Seiten
KS 130 control Bedienungsanleitung     IKA KS 130 control User Manual, 56 Seiten
KS 260 control Bedienungsanleitung     IKA KS 260 control User Manual, 56 Seiten
KS 501 digital Bedienungsanleitung   IKA KS 501 digital User Manual, 12 Seiten
Vortex 4 basic Bedienungsanleitung     IKA Vortex 4 basic User Manual, 42 Seiten
ULTRA-TURRAX Tube Drive control Bedienungsanleitung      IKA ULTRA-TURRAX Tube Drive control User Manual, 72 Seiten
M 20 Universal mill Bedienungsanleitung     IKA M 20 Universal mill User Manual, 16 Seiten
A 11 basic Bedienungsanleitung        IKA A 11 basic User Manual, 60 Seiten
HB 4 basic Bedienungsanleitung     IKA HB 4 basic User Manual, 26 Seiten
MF 10 basic Bedienungsanleitung       IKA MF 10 basic User Manual, 140 Seiten
RV 10 digital FLEX Bedienungsanleitung       IKA RV 10 digital FLEX User Manual, 84 Seiten
C 1 Package 1/10 Bedienungsanleitung   IKA C 1 Package 1/10 User Manual, 44 Seiten
C 200 Bedienungsanleitung   IKA C 200 User Manual, 32 Seiten
C 2000 control Bedienungsanleitung   IKA C 2000 control User Manual, 92 Seiten
C 1 Package 1/10 Bedienungsanleitung   IKA C 1 Package 1/10 Benutzerhandbuch, 44 Seiten
C 5000 control Package 2/12 Bedienungsanleitung   IKA C 5000 control Package 2/12 User Manual, 128 Seiten
C 200 Bedienungsanleitung   IKA C 200 Benutzerhandbuch, 32 Seiten