×
Namespaces

Variants
Actions
Revision as of 12:18, 11 June 2009 by tanjaluodes (Talk | contribs)

How to use Popup ChoiceGroup in LCDUI

From Nokia Developer Wiki
Jump to: navigation, search

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

54 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×