Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Lightweight UI Toolkit

Adding the LWUIT Library

Using the LWUIT Resource Manager

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference


JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support


Using the LWUIT Resource Manager

The Resource Manager is a graphical tool for creating resource bundles and adding them to the build process.

  1. Select a project that contains the LWUIT libraries.

  2. Select Tools > LWUIT Resources.

    The Resource Manager opens.

  3. To add a bundle, right-click anywhere within the Resource Manager window and select Add Bundle from the context menu.

  4. Enter a bundle name and click OK.

    You are ready to add resources to the new bundle.

  5. Select a resource, and select Windows > Properties to view and edit the resource.

Experiment with adding resources. Resources are fully described in the Lightweight UI Toolkit Developer’s Guide. Here is a brief summary of the resource types:

JPG and PNG files. The file name can be changed and you can choose to pack the file to save space.

Animations. GIF files. You just supply a name.

Font. There are two font types:

Localization. Choose the main localization bundle, for example, foobar.properties. This main bundle is then added with a "default" ID. Other locales are added with their proper ID. For example, foobar_en_GB.properties is added with the ID en_GB. Unfortunately this resource must be recreated in the resource manager when more locales are added (or removed).

Theme. Adds the .conf theme file. See the Lightweight UI Toolkit Developer’s Guide.