Create the Add screen
Next we will create the screen which is used to enter new items into the To Do list. We will use a TextBox for this purpose.
- Drag a TextBox from the Palette to the Display on the Parts tree. Try to put the TextBox below the List named items in the tree. If you put it above, you can drag it below. The TextBox should now be visible in the Emulator, with a name similar to textBox1. The order matters, because your MIDlet will start showing the first display which isn't an Alert which is found in the Parts tree.
There are many properties of a TextBox.
- In the property sheet for the TextBox, set the Object Name to 'editor'.
- Set the Title to 'Add an item'.
- Make the Starting Text blank. If the Starting Text textfield is not visible on the TextBox's property sheet, adjust the size of the Composer window or the size of the contextual help.
You may enter text into the TextBox by selecting the Emulator and typing with your keyboard or using your mouse to press the keypad in the emulator.
| Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |