Blackberry JAVA DEVELOPMENT ENVIRONMENT Manuale introduttivo - Pagina 24
Sfoglia online o scarica il pdf Manuale introduttivo per Software Blackberry JAVA DEVELOPMENT ENVIRONMENT. Blackberry JAVA DEVELOPMENT ENVIRONMENT 32. Version 4.7.0
Anche per Blackberry JAVA DEVELOPMENT ENVIRONMENT: Nota di rilascio (8 pagine)
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");
}