aspose file tools*
The moose likes Java Micro Edition and the fly likes How to open a POPUP Choicegroup..? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to open a POPUP Choicegroup..?" Watch "How to open a POPUP Choicegroup..?" New topic
Author

How to open a POPUP Choicegroup..?

Uditha Senaratne
Greenhorn

Joined: Jul 09, 2006
Posts: 7
Hi friends,

I am developing a JavaME application for unit conversion using Netbeans 6.5 IDE. Here I have added a command to a choicegroup-popup.

public Class Converter extends Midlet implements ItemCommandListener{
....
....
choicegroup1=new ChoiceGroup(..................................);
command1=new Command(..................................);
....
....
choicegroup1.setDefaultCommand(command1);
choicegroup1.setItemCommandListener(this);

....
....
}

I want to open and pop up the choicegroup when "triggering" the command, but failed.

Can somebody please help me... :?:

Thank you...!
Sukitha R Udugamasooriya
Greenhorn

Joined: Feb 02, 2009
Posts: 15
Uditha,

Could you please give more detail about your problem? I'm not quite clear about the current explanation.

thanks,


Sukitha Ranaba Udugamasooriya
(SCJP SCMAD SCWCD)
Uditha Senaratne
Greenhorn

Joined: Jul 09, 2006
Posts: 7
I want to assign a Choicegroup(POPUP) to a command button.

There's a POPUP type chicegroup item on my Form. I want to assign a command button for that item and when I press the command button, the choicegroup should be popped up.

I can open the choicegroup by pressing the joystick of my phone, but I am failed do it by pressing the command button.



Thanks...........

Sukitha R Udugamasooriya
Greenhorn

Joined: Feb 02, 2009
Posts: 15
Hi Uditha,

Before I go deeply in your problem I just want to clarify few things. Does you class have 2 overloaded commandAction() methods and have you implement the ItemCommandListener?

regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open a POPUP Choicegroup..?
 
Similar Threads
Dropdown boxes
suggestions required for J2ME
doubt in choicegroup
Equivalent of JComboBox
ChoiceGroup getSelectedIndex() returns -1