From dfdba9c61de1c0bac68cf0f6e81c7cd9149fd166 Mon Sep 17 00:00:00 2001 From: Mr Lima Date: Thu, 23 Oct 2025 18:20:48 -0300 Subject: [PATCH] MIDlet Project --- build/compiled/.nomedia | 0 build/manifest.mf | 7 +++++++ build/preverified/.nomedia | 0 dist/.nomedia | 0 nbproject/project.properties | 12 ++++++++++++ src/Example.java | 23 +++++++++++++++++++++++ 6 files changed, 42 insertions(+) create mode 100644 build/compiled/.nomedia create mode 100644 build/manifest.mf create mode 100644 build/preverified/.nomedia create mode 100644 dist/.nomedia create mode 100644 nbproject/project.properties create mode 100644 src/Example.java diff --git a/build/compiled/.nomedia b/build/compiled/.nomedia new file mode 100644 index 0000000..e69de29 diff --git a/build/manifest.mf b/build/manifest.mf new file mode 100644 index 0000000..bb998ca --- /dev/null +++ b/build/manifest.mf @@ -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 ] diff --git a/build/preverified/.nomedia b/build/preverified/.nomedia new file mode 100644 index 0000000..e69de29 diff --git a/dist/.nomedia b/dist/.nomedia new file mode 100644 index 0000000..e69de29 diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..060f63f --- /dev/null +++ b/nbproject/project.properties @@ -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 diff --git a/src/Example.java b/src/Example.java new file mode 100644 index 0000000..cb1d86c --- /dev/null +++ b/src/Example.java @@ -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(); + } + } +} \ No newline at end of file