- Forward


The J2ME Mobile Information Device Profile
An Introduction


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu

Print

What the MIDP Adds (to the Configuration)
Back SMYC Forward
  • User Interface Components
  • Visual Content
  • Auditory Content
  • A Record Management System
  • Communications/Networking
  • Public Key Infrastructure
Applications
Back SMYC Forward
  • Must extend the MIDlet class
  • Are managed by a MIDlet Manager on the device
Important Differences - Visual Content
Back SMYC Forward
  • General:
    • No AffineTransform
    • Graphics not Graphics2D
  • Sampled Content:
    • Image instead of BufferedImage
    • No BufferedImageOp
  • Described Content:
    • No Shape interface or implementations
    • No Color, Paint or Stroke classes
Important Differences - Auditory Content
Back SMYC Forward
  • General:
    • Auditory content is handled by the optional Mobile Media API (JSR 135)
  • Sampled Content:
    • Presented using a Player
  • Described Content:
    • Presented using a Player
    • Manipulated using a MIDIControl and/or a TempoControl
The MIDlet Lifecycle
Back SMYC Forward

midlet-lifecycle
Developing User Interfaces
Back SMYC Forward

Important Components

j2me-gui
Developing User Interfaces (cont.)
Back SMYC Forward

An Example of Form Layout

j2meexamples/src/phoneycall/MultipleCallScreen.java (Fragment: layout)
 
Developing User Interfaces (cont.)
Back SMYC Forward

An Example of a List

j2meexamples/src/phoneycall/CallersScreen.java (Fragment: layout)
 
Developing User Interfaces (cont.)
Back SMYC Forward

Command Objects

j2me-gui-commands
Developing User Interfaces (cont.)
Back SMYC Forward

Command Objects on a Form

j2meexamples/src/phoneycall/MultipleCallScreen.java (Fragment: commands)
 
Developing User Interfaces (cont.)
Back SMYC Forward

A Select Command on a List

j2meexamples/src/phoneycall/CallCountScreen.java (Fragment: commands)
 
Developing User Interfaces (cont.)
Back SMYC Forward

Handling Commands - The CommandListener Interface

j2meexamples/src/phoneycall/PhoneyCall.java (Fragment: commandlistener)
 
There's Always More to Learn
Back -