2
edits
Changes
no edit summary
For the title one could use:
void net.rim.device.api.ui.container.MainScreen.setTitle(Field arg0)
Thus, to set the title of the screen you can write the instruction:
* Text Field
Fot the screen text, one can use the constructor of RichTextField class from the package:
net.rim.device.api.ui.component.RichTextField
public RichTextField(String text, long style)
To add the field to the screen you invoke the method
void net.rim.device.api.ui.Screen.'''add'''(Field arg0)
Thus, to add the text field to your screen you have to write the following instruction:
add(new RichTextField("Here is the second activity", Field.NON_FOCUSABLE));