Blackberry JAVA DEVELOPMENT ENVIRONMENT Handbuch "Erste Schritte - Seite 24
Blättern Sie online oder laden Sie pdf Handbuch "Erste Schritte für Software Blackberry JAVA DEVELOPMENT ENVIRONMENT herunter. Blackberry JAVA DEVELOPMENT ENVIRONMENT 32 Seiten. Version 4.7.0
Auch für Blackberry JAVA DEVELOPMENT ENVIRONMENT: Freigabemitteilung (8 seiten)
Getting started guide
20, Field.READONLY);
Field.READONLY);
50, Field.READONLY);
user
}
}
}
24
LabelField lf = new LabelField();
BasicEditField popField = new BasicEditField("Population: ", null,
BasicEditField stateField = new BasicEditField("State: ", null, 20,
BasicEditField sightsField = new BasicEditField("Sights: ", null,
add(lf);
add(new SeparatorField());
add(popField);
add(stateField);
add(sightsField);
//Populate fields with data for the city the BlackBerry smartphone
//selects. The 'select' variable stores the value for the city.
if (select == 0) {
lf.setText("Los Angeles");
popField.setText("3,694,820");
stateField.setText("California");
sightsField.setText("Hollywood");
} else if (select == 1) {
lf.setText("Chicago");
popField.setText("2,896,016");
stateField.setText("Illinois");
sightsField.setText("Blues Clubs");
} else if (select == 2) {
lf.setText("New York");
popField.setText("8,008,278");
stateField.setText("New York");
sightsField.setText("Broadway");
}