• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to open a POPUP Choicegroup..?

 
Uditha Senaratne
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Uditha,

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

thanks,
 
Uditha Senaratne
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic