Create the items list
You will now begin to assemble your To Do application. This application is based around two screens: the list of To Do items, and the screen where new items are entered. These screens are both displays, and can be found on the Displayables page of the Mobile Devices Palette.
- In the MIDlet composer, make sure that the ToDo node is expanded in the Parts tree. You will see the nine built-in nodes of the MIDlet. These are important, fundamental parts of the MIDlet and cannot be moved or deleted. Note the last node, 'Display'. This is where all screens which will be added to the MIDlet will be dropped.
- On the Mobile Devices Palette, make sure that the first page, 'Displayables', is visible. (If not, click the mouse button on the 'Displayables' tab near the top of the Palette.)
- You will see icons for all of the basic screen types. Click the third icon, named 'List', with the mouse and drag the list to the Display node. The tree will display a cancel icon if an attempt is made to drag the list to an inappropriate node. If the drag is valid, a line appears in the tree showing where the part will appear. Release the mouse to create the new part at that place in the tree.
- If the List is properly dragged to the tree, it will appear under Display in the tree, and also in the Emulator as a new screen with a name similar to list0. If the List was dropped into the recycling bin, it may be dragged to the Display node. In this case, the button Display this List, located on the property sheet of the List, must be pressed to show it in the emulator.
| Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |