J2ME: List SelectedIndex Changed Event

Is there any function that detects highlight changes in a List item in a MIDLet class.?
The functions provided with List allow only detect if an index has been selected AFTER the select button was pressed.
I need a function that detects the change of selection when UP DOWN arrows are pressed. This function should return the index of the selected item in a List as soon as the item is highlighted not after the select button is pressed.
Any Help??
LVL 3
mte01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mikal613Commented:
did you look at the mousedown event? or perhaps the click event
0
mte01Author Commented:
There's no mouse :)........it's a mobile phone enviroment.......

We're looking at some "itemup" or "itemdown" event......
0
petmagdyCommented:
for sorry their is no such event in List class
0
ON-DEMAND: 10 Easy Ways to Lose a Password

Learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees in this on-demand webinar. We cover the importance of multi-factor authentication and how these solutions can better protect your business!

mte01Author Commented:
petmagdy......I see...I will be waiting for other comments
0
bhprCommented:
mte01 ,

try someting like this

if keyPressed in (uparrow| downarrow) then
   list.getSelectedIndex()
endif

??
-bhpr
0
mte01Author Commented:
bhpr......have you worked in J2ME before,....I don't think such syntax would work. (I would have tried it right now, but I am working on a pc that doesn't have the J2ME software)
0
bhprCommented:
mte01 thanks :) for your comment,  i worked in J2ME, and that is a not the actual code, that is only i written for  a overview (pheudo code).

keyPressed is a method in Canvas class.



-bhpr
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mte01Author Commented:
Yes....I was trying to be able to do this without using the Canvas class....
0
mte01Author Commented:
I tried everything possible....apparently it won't work....does anyone think that re-posting the question in the Java area would make a difference??
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Wireless Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.