MIDlet Project

This commit is contained in:
2025-10-23 18:20:48 -03:00
commit dfdba9c61d
6 changed files with 42 additions and 0 deletions

0
build/compiled/.nomedia Normal file
View File

7
build/manifest.mf Normal file
View File

@@ -0,0 +1,7 @@
MIDlet-1: [ MIDlet Name ],[ MIDlet Icon ],[ MIDlet Class ]
MIDlet-Name: [ MIDlet Name ]
MIDlet-Vendor: [ Your Name ]
MIDlet-Version: [ Version ]
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
MIDlet-Description: [ Description ]

View File

0
dist/.nomedia vendored Normal file
View File

View File

@@ -0,0 +1,12 @@
name=[ Project Name ]
deployment.counter=2
app-version.autoincrement=true
deployment.number=0.1
dist.jad=[ JAD filename ].jad
dist.jar=[ JAR filename ].jar
jar.compress=true
javac.debug=false
javac.optimize=false
javac.encoding=windows-1251
manifest.midlets=MIDlet-1: [ MIDlet Name ],[ MIDlet Icon ],[ MIDlet Class ]\n
manifest.others=MIDlet-Name: [ MIDlet Name ]\nMIDlet-Vendor: [ Your Name ]\nMIDlet-Version: [ Version ]\nMicroEdition-Configuration: CLDC-1.0\nMicroEdition-Profile: MIDP-2.0\nMIDlet-Description: [ Description ]\n

23
src/Example.java Normal file
View File

@@ -0,0 +1,23 @@
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class OpenTTY extends MIDlet implements CommandListener {
private Form screen = new Form("Example MIDlet");
private Command exit = new Command("Exit", Command.EXIT, 1);
private Display display = Display.getDisplay(this);
public void startApp() {
screen.append("This is a MIDlet example!");
screen.addCommand(exit);
screen.setCommandListener(this);
display.setCurrent(screen);
}
public void pauseApp() { }
public void destroyApp(boolean unconditional) { notifyDestroyed(); }
public void commandAction(Command c, Displayable d) {
if (c == exit) {
destroyApp();
}
}
}