473,385 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

J2ME - ChoiceGroup action handler

144 100+
hello, i'm learning J2ME

i have a choicegroup in one of my form that i use as a menu list. if one of the choicegroup item is chosen/clicked, it will bring the user to another form display. i use the ItemStateListener to do this.

the problem with ItemStateListener is that when the user clicks/chooses the first item of the ChoiceGroup, which is selected by default, the ItemStateChanged isn't called.

i've tried using the commandListener but i don't know how to get at what index the user presses the command, because the user can just press the command without selecting the item (of the choicegroup) first..

is there any workaround for this?

Thank you.
Jun 21 '09 #1
0 2169

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Oz Mortimer | last post by:
Hi, Is there any way that I can create a selectable image? I have tried using List and ChoiceGroup but this doesnt seem to give the results I require!. I want to create a menu list using...
6
by: Oz Mortimer | last post by:
Hi, Is there any way that I can scroll a canvas - i.e. if there are too many items on the canvas you can still access by pressing down. I know Form does this (apparently) but I need to do it...
0
by: Todd Christy | last post by:
I am building a J2ME application for a BlackBerry handheld device. This application connects to an IIS server via HTTP to execute remote ASPX-based services that collect and return data. We are...
0
by: Dave Rathnow | last post by:
We are looking at using J2ME in a embedded device that will be deployed in an industrial application and I've been doing some research to see how practical J2ME would be for our application. Most...
1
by: Sveta | last post by:
Hi, all! I have application that has form with ChoiceGroup. I put 2 items to the ChoiceGroup ("Yes" and "NO"). String choiceLabels ={"YES", "NO"}; ChoiceGroup cg = new...
1
by: Tomislav | last post by:
Hi! I have 3 questions, so here they are: 1.I would like to make an aplicaton wich can run on GSM mobile phones - SonyErricson k700 for instance. Is the J2ME what I am looking for? 2. Is...
2
by: mayankcdac | last post by:
Hi i am a new guy in j2me field i am working in j2me gaming but i want to switch from gaming to application. i am facing some problems to build j2me application can any one give me any source code(...
0
by: WaluigiCubed | last post by:
Hi all, I'm designing a phone application using J2ME that uses the Open Source Diamond Powder methodology. The below getSchema method will eventually read in data to build screens on the phone...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.