MIDP Displayable wizard

The MIDP Displayable wizard adds a new Displayable.java class to your project which can be customized visually in the MIDP designer.

To open the MIDP Displayable wizard, choose File|New, then double-click the MIDP Displayable icon on the Micro page of the object gallery.

Important: You must create or open a project first before you can access the Micro page on the object gallery.

Package

Displays the package name derived from the project file. To assign a different package name to the Displayable file, click in the Package field and type in a new name.

For more information on packages, see the "Packages" topic in "Creating and managing projects" in Introducing JBuilder.

Class

A default name is entered for the class. Enter the name for the Displayable class if you don't want to use the default name.

Title

A default display String is entered for the class. Replace this with a String of your choosing. This is what displays at the top of the device screen at runtime.

Displayable type

Select the desired displayable superclass to extend. You can choose from javax.microedition.lcdui.Canvas, javax.microedition.lcdui.Form, javax.microedition.lcdui.List, or javax.microedition.lcdui.TextBox.

The default type is javax.microedition.lcdui.Form because it allows for the inclusion of multiple child components. javax.microedition.lcdui.Form is the only MIDP component that can contain another component.

Command handling

This option let's you specify how you want commands handled in the automatic code generation. Besides the standard adapter and anonymous adapter choices available in the Project Properties|Code Style page, you have two additional options:



Generate Header Comments

Uses information from the project file as header comments at the top of the class file. This is the information entered in the Project wizard when creating the project file.

//Title:        Your Product Name
//Version:    
//Copyright:    Copyright (c) 2001
//Author:       Your Name
//Company:      Your Company
//Description:  Your description