Accessories

5
CHAPTER
2
Creating Device Property Files
This chapter presents a simple tutorial that walks you through the procedures for
creating a device property file. You will learn how to use the new device property
files to enable the J2ME Wireless Toolkit to emulate applications for the device. See
Chapter 3, “Examining Device Property Files for a detailed reference on device
properties, the custom-tailoring options available, and how to use them.
In the following step-by-step tutorial, you will create a device definition for a
device called NewPhone. Because of the similarity of NewPhone to the
DefaultColorPhone device included with the J2ME Wireless Toolkit, the tutorial
adapts the existing property file for DefaultColorPhone.
The steps of the tutorial are:
Make a Copy of an Existing Main Device Property File
Obtain and Enter Image Files
Obtain and Enter the Screen Properties
Obtain and Enter the Button Properties
Obtain and Enter Soft Button Label Areas
Obtain and Enter Icon Properties
Enter Color Properties
Run the Emulator for the New Device
Make a Copy of an Existing Main Device
Property File
You will create a device property file for a new emulated device called NewPhone.
The first step in creating a property file for NewPhone is to copy the directory
associated with the existing device, DefaultColorPhone, to the new directory
NewPhone and to rename the main property file.