Blackberry JAVA DEVELOPMENT ENVIRONMENT Руководство по началу работы - Страница 24

Просмотреть онлайн или скачать pdf Руководство по началу работы для Программное обеспечение Blackberry JAVA DEVELOPMENT ENVIRONMENT. Blackberry JAVA DEVELOPMENT ENVIRONMENT 32 страницы. Version 4.7.0
Также для Blackberry JAVA DEVELOPMENT ENVIRONMENT: Примечание к выпуску (8 страниц)

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");
}