04 J2ME Wireless Tool Kit

1,327 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,327
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
40
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

04 J2ME Wireless Tool Kit

  1. 1. J2ME Wireless Tool Kit (WTK) Cornelius Koo - 2005
  2. 2. KToolBarStart -> Programs -> J2ME Wireless ToolKit 2.0 -> KToolBar
  3. 3. Project File Organization
  4. 4. Create New Project
  5. 5. Open Existing Project
  6. 6. Editing MIDlet Suite Attribute
  7. 7. Modifying MIDlet Suite Attributes
  8. 8. Modifying User Defined Attributes
  9. 9. Modifying MIDlet-Specific Attributes
  10. 10. Simple Hello World
  11. 11. import javax.microedition.lcdui.Display;import javax.microedition.lcdui.TextBox;import javax.microedition.midlet.MIDlet;import javax.microedition.midlet.MIDletStateChangeException;public class HelloWorld extends MIDlet { private Display display; public HelloWorld() { display = Display.getDisplay(this); } protected void startApp() throws MIDletStateChangeException { TextBox t = new TextBox(“Hello World MIDlet","Hello Small World",256,0); display.setCurrent(t); } protected void pauseApp() {} protected void destroyApp(boolean arg0) throws MIDletStateChangeException {}}Save this HelloWorld.java file at WTK20appsHello Worldsrc
  12. 12. Building Application
  13. 13. Running Locally
  14. 14. Cleaning Up Project
  15. 15. This will remove unnecessary files from project folder
  16. 16. Packaging
  17. 17. External Libraries
  18. 18. Place the .JAR files inside this /libdirectory for specific project.
  19. 19. Place the .JAR files inside this /libdirectory for all projects
  20. 20. Reference• WTK User Guide. SUN Microsystem, 2003.

×