TOC PREV NEXT INDEX



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.

  1. 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. If the TextBox isn't displayed in the Emulator, press the button titled Display this Text Box, located on the property sheet of the TextBox.

There are many properties of a TextBox.

  1. In the property sheet for the TextBox, set the Object Name to 'editor'.
  2. Set the Title to 'Add an item'.
  3. Make the Starting Text blank. If the Starting Text textfield is not visible on the bottom right of 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 computer's 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
TOC PREV NEXT INDEX