Categories: Java | Java ME | UI | Code Examples | Level-Basic
The following code creates a Form with a Popup Choice Group.
import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Choice_Group extends MIDlet { Display display=Display.getDisplay(this); public void startApp() { Form form = new Form("Form example"); //ChoiceGroup(label,type,elements,image) ChoiceGroup CoursePOP = new ChoiceGroup ("Pop Up choice", Choice.POPUP, new String[] {"Python", "J2ME","Symbian"}, null); form.append(CoursePOP); display.setCurrent(form); } }
The following screen shot is an outcome.
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| popup Menu for a edwin? | sohnisheth | General Symbian C++ | 3 | 2006-08-29 10:45 |
| app starts too slow | diplm | Mobile Java General | 7 | 2004-07-02 14:28 |
| Dynamic popup field in form | toshaga | Symbian User Interface | 1 | 2007-06-26 04:52 |
| ListBox as a settinglist item!!! | raj8nokiaforum | General Symbian C++ | 3 | 2008-11-28 12:26 |
| Full Size Canvas based applications problems | csxergiu77 | Mobile Java General | 0 | 2007-02-28 14:35 |