Namespaces
Variants
Actions

How to use Popup choice group

Jump to: navigation, search
SignpostIcon Asha UI.png
Article Metadata

Article
Created: giaperrucci (07 Jun 2007)
Last edited: hamishwillee (19 Sep 2012)

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.

Choicegroup1.png
This page was last modified on 19 September 2012, at 03:26.
116 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved