String.valueOf(maxCount), 3, TextField.NUMERIC);
//#ifdef DMIDP20
m_wordCountField.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( m_wordCountField );
StringItem itemInfo = new StringItem("Program MIDP version:",
//#ifdef DMIDP20
"MIDP-2.0");
//#else
//@ "MIDP-1.0");
//#endif
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( itemInfo );
itemInfo = new StringItem("Program CLDC version:",
//#ifdef DCLDCV11
//@ "CLDC-1.1");
//#else
"CLDC-1.0");
//#endif
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( itemInfo );
itemInfo = new StringItem("Program JSR 75 available:",
//#ifdef DJSR75
//@ "true");
//#else
"false");
//#endif
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( itemInfo );
String mep = System.getProperty("microedition.profiles");
if (mep == null) {
mep = "N/A";
}
itemInfo = new StringItem("Phone MIDP version:", mep);
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( itemInfo );
itemInfo = new StringItem("Phone CLDC version:",
System.getProperty("microedition.configuration"));
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( itemInfo );
itemInfo = new StringItem("Phone JSR 75 available:",
new Boolean(System.getProperty(
"microedition.io.file.FileConnection.version")
!= null).toString());
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( itemInfo );
String me = System.getProperty("microedition.platform");
if (me == null) {
me = "N/A";
}
itemInfo = new StringItem("Phone Microedition platform:", me);
//#ifdef DMIDP20
itemInfo.setLayout(Item.LAYOUT_BOTTOM);
//#endif
this.append( itemInfo );
//#ifdef DLOGGING
//@ m_logLevelField = new TextField("Logging level",
//@ logger.getParent().getLevel().getName(), 20, TextField.ANY);
//#ifdef DMIDP20
//@ m_logLevelField.setLayout(Item.LAYOUT_BOTTOM);
//#endif
//@ super.append( m_logLevelField );
//#endif
m_pgmMemUsedItem = new StringItem("Application memory used:", "");
//#ifdef DMIDP20
m_pgmMemUsedItem.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( m_pgmMemUsedItem );
m_pgmMemAvailItem = new StringItem("Application memory available:", "");
//#ifdef DMIDP20
m_pgmMemAvailItem.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( m_pgmMemAvailItem );
m_memUsedItem = new StringItem("DB memory used:", "");
//#ifdef DMIDP20
m_memUsedItem.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( m_memUsedItem );
m_memAvailItem = new StringItem("DB memory available:", "");
//#ifdef DMIDP20
m_memAvailItem.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( m_memAvailItem );
m_threadsUsed = new StringItem("Active Threads:", "");
//#ifdef DMIDP20
m_threadsUsed.setLayout(Item.LAYOUT_BOTTOM);
//#endif
super.append( m_threadsUsed );
updateForm();