Basic Customization Guide

Java™ 2 Platform, Micro Edition, Wireless Toolkit
Version 2.1

December 2003

 
Contents Previous Next Index

Contents


Preface

1. Customizing the Wireless Toolkit

How to Customize the Wireless Toolkit

Customization Steps

Device Property Files and the Default Emulator

2. Creating Device Property Files

Make a Copy of an Existing Main Device Property File

Obtain and Enter Image Files

Obtain and Enter the Screen Properties

Screen Location

Total Screen Size

Display Area

Display Area in Full Screen Mode

Obtain and Enter the Button Properties

Obtain and Enter Soft Button Label Areas

Obtain and Enter Icon Properties

Defining the Icon Location and States

Enter Color Properties

Screen Background RGB Color

Run the Emulator for the New Device

3. Examining Device Property Files

Device Property Files

Main Device Property File

Fonts

Fonts Used by the MIDP APIs

Default Font

System Fonts

Bitmap Fonts

Font Underlining

The Device Image

Image without Buttons Pressed

Image with Buttons Pressed

Image with Buttons Highlighted and Backlight On

Scaling

Screen Properties

Screen Location

Total Screen Size

Display Area

Display Area in Full Screen Mode

Screen Pixel Ratio

Screen Background Color

Screen Border Color

Touch Screen

Screen Buffering

Device Buttons

Keyboard Handler

Defining a Device Button

Assigning a PC Keyboard Key to a Button

Assigning a Game Action to a Button

Specifying the Characters Generated by a Button Press

Assigning Abstract Commands to Buttons

Displayed Icons

Defining the Icon Location and States

Soft Button Label Display

Color

Sound Alerts

Device Software Capabilities

Locales

Character Encodings

Transparent Images

A. Default Emulator Device Property Files

Property Files

DefaultGrayPhone.properties

Device Image Files

Icon Image Files

B. Support for ByteCode Obfuscators

Adding a ByteCode Obfuscator

Example

C. Connecting to the Wireless Toolkit’s WMA Emulation Environment

Index

 


Contents Previous Next Index