Java properties

The Lightfoot SDK allows you to provide a set of properties that can be accessed using the System.getProperty method. These properties are created at link time using the XML configuration file and XML properties files from Java libraries.

Defining properties

You define properties for your application by adding a <properties> section. This contains a number of properties stored as name/value combinations.

Setting properties at runtime

Properties can be set at runtime using the com.dctl.j2me.system.PropertyManager.setProperty method. This can be used to override a linktime property or add an additional property.

Default properties

The following table lists the properties available and their default values
Name
Value Description
microedition.platform
DCT Lightfoot 2
Name of the platform
microedition.encoding
ISO8859_1
Character set encoding
microedition.configuration
CLDC-1.1
J2ME configuration information
microedition.profiles
Various
This changes depending on the libraries loaded
user.language
en
English language
dct.connection.prefix
com.dctl.j2me.io
Class prefix for generic connection framework connectors
dct.connection.prefix.user

Class prefix for user defined generic connection framework connectors
dct.dynamic.class.loader
com.dctl.j2me.system.HttpClassLoader
Name of the class loader class
dct.CalendarType
com.dctl.j2me.util.SimpleCalendar
Name of the calendar class
dct.TimeZoneType
com.dctl.j2me.util.SimpleTimeZone
Name of the time zone class
dct.ConverterType
com.dctl.j2me.i18n.SimpleConverter
Name of the character conversion class
dct.midp.lcdui.width
128
Width of the lcdui display
dct.midp.lcdui.height
128
Height of the lcdui display
dct.midp.lcdui.repaint.interval
100
Milliseconds between repaints of the lcdui display
dct.midp.lcdui.repaint.priority
1
Time slice priority for the lcdui repaint thread
dct.midp.lcdui.event.priority
1
Time slice priority for the lcdui event thread
dct.midp.lcdui.system.plain
dct.midp.lcdui.system.italice
dct.midp.lcdui.system.bold
dct.midp.lcdui.system.bolditalic
dct.midp.lcdui.proportional.plain
dct.midp.lcdui.proportional.italice
dct.midp.lcdui.proportional.bold
dct.midp.lcdui.proportional.bolditalic
dct.midp.lcdui.monospace.plain
dct.midp.lcdui.monospace.italice
dct.midp.lcdui.monospace.bold
dct.midp.lcdui.monospace.bolditalic
Platform dependant
X11 font names for all the different fonts used
dct.midp.lcdui.font.size.small
8
Small font size
dct.midp.lcdui.font.size.medium
10
Medium font size
dct.midp.lcdui.font.size.large
12
Large font size
dct.midp.lcdui.display

The X11 display to connect to. If blank (default), connects back to display 0 on the machine that downloaded the application
dct.midp.lcdui.synchronized
1
If set to 1, the lcdui display is synchronized, possibly reducing performance but required for MIDP.
dct.midp.lcdui.commandButtons
2
The number of command buttons. On a PC keyboard they map beginning with F1, F2,...
dct.midp.lcdui.softbuttons.height
10
The height of the softy button screen area
dct.midp.lcdui.status.height

Height of the lcdui status area (not implemented)
dct.midp.lcdui.pointer
0
Set to 1 to enable a pointer. Currently only supported for remote X displays
dct.midp.lcdui.key
1
Set to 1 to enable keyboard events.
dct.midp.rms.store
com.dctl.j2me.rms.flash.FlashFileSystem
Name of the class providing record store support