|
Slide 3.15: Lists Slide 3.17: Lists (cont.) Home |
|
List menu;
Screen containing list of choices.
menu = new List( "Test Components", Choice.IMPLICIT );
List with the following two parameters:
title — the screen's title, and
listType — one of the three field values:
menu.append( "Test TextBox", null );
javax.microedition.lcdui and defines an API for a user interface components implementing selection from predefined number of choices.
The added element will be the last element of the Choice.
Ticker ticker = new Ticker( "Test GUI Components" );
Ticker object, given its initial contents string.
menu.setTicker(ticker);
Screen, replacing any previous ticker.