• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
04 J2ME Wireless Tool Kit
 

04 J2ME Wireless Tool Kit

on

  • 1,253 views

 

Statistics

Views

Total Views
1,253
Views on SlideShare
1,253
Embed Views
0

Actions

Likes
1
Downloads
33
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    04 J2ME Wireless Tool Kit 04 J2ME Wireless Tool Kit Presentation Transcript

    • J2ME Wireless Tool Kit (WTK) Cornelius Koo - 2005
    • KToolBarStart -> Programs -> J2ME Wireless ToolKit 2.0 -> KToolBar
    • Project File Organization
    • Create New Project
    • Open Existing Project
    • Editing MIDlet Suite Attribute
    • Modifying MIDlet Suite Attributes
    • Modifying User Defined Attributes
    • Modifying MIDlet-Specific Attributes
    • Simple Hello World
    • 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
    • Building Application
    • Running Locally
    • Cleaning Up Project
    • This will remove unnecessary files from project folder
    • Packaging
    • External Libraries
    • Place the .JAR files inside this /libdirectory for specific project.
    • Place the .JAR files inside this /libdirectory for all projects
    • Reference• WTK User Guide. SUN Microsystem, 2003.