Total Screen Size

Referring to the left image in FIGURE 1, you specify the total screen size by two lines of the form:

screen.width = <horizontal distance in pixels> screen.height = <vertical distance in pixels>

Enter the following measured values for the total screen size in

NewPhone.properties:

screen.width = 96 screen.height = 128

Display Area

Referring to the right image in FIGURE 1 on page 9, the display area (or paintable region) is that part of the screen that is available to applications. The remainder of the screen is for icons and soft button labels.

The coordinates of the display area are relative to the screen location.

You can specify the display area used by the application to be a subregion of the screen by four lines of the form:

screenPaintableRegion.x = <horizontal distance to display area> screenPaintableRegion.y = <vertical distance to display area> screenPaintableRegion.width = <width of display area> screenPaintableRegion.height = <height of display area>

Enter the following measured values for the screen display area in

NewPhone.properties.

screenPaintableRegion.x = 0 screenPaintableRegion.y = 10 screenPaintableRegion.width = 96 screenPaintableRegion.height = 100

8 Wireless Toolkit Basic Customization Guide • December 2003

Page 22
Image 22
Sun Microsystems Computer Accessories manual Total Screen Size, Display Area