Blackberry JAVA DEVELOPMENT ENVIRONMENT Руководство по началу работы - Страница 16
Просмотреть онлайн или скачать pdf Руководство по началу работы для Программное обеспечение Blackberry JAVA DEVELOPMENT ENVIRONMENT. Blackberry JAVA DEVELOPMENT ENVIRONMENT 32 страницы. Version 4.7.0
Также для Blackberry JAVA DEVELOPMENT ENVIRONMENT: Примечание к выпуску (8 страниц)
Getting started guide
//Add the text "Hello World!" to the screen.
add(new RichTextField("Hello World!"));
}
//To display a dialog box to a BlackBerry smartphone user with the text
//"Goodbye!" when the BlackBerry smartphone user closes the BlackBerry device
application, override the onClose() method.
public boolean onClose()
{
Dialog.alert("Goodbye!");
System.exit(0);
return true;
}
}
Create a BlackBerry device application with advanced UI
features
Create a project for a CityInfo application in an Eclipse workspace
1.
On the File menu, click New > Project.
2. Expand the BlackBerry folder.
3. Select BlackBerry project.
4. Click Next.
5. In the Project name field, type CityInfo.
6. Click Next.
7. Click Finish.
Set the information and type for the project for the CityInfo application
1.
In the Navigator view, select a BlackBerry project.
2. Right-click the project and select Properties.
3. In the Properties for pane, select BlackBerry Project Properties.
4. Click the General tab.
5. In the Title field, type City Info Sample.
6. In the Version field, type a version number.
7. In the Vendor field, type a vendor name, for example, Research In Motion Ltd.
8. Click the tab.
9. In the Project type drop-down list, select the CLDC option.
16