[Webinar] Streamline your web hosting managementRegister Today


J2ME: Vertical Item traversing

Posted on 2004-10-25
Medium Priority
Last Modified: 2008-03-17
Suppose Items (I was testing with StringItems) are packed across multiple rows. The focus is on one of them (let's say somewhere in the middle). When UP or DOWN key is pressed what I observe (I am working with Sun Studio's emulator) is that the focus moves to the right or left neighbor of an Item. I was expecting that it will move to the row above or below currently selected Item (if available) to the Item that is right on top or right at the bottom of the currently selected Item.

Is this implementation specific?
Do you know of any implementation that would traverse vertically on UP and DOWN?

If it was meant to be this way, do you know of the way to provide above mentioned vertical traversal? (I know that CustomItem can solve this problem but it seems to be an over killing way to solve simple issue. I am looking for relatively simple solution)
Question by:chochomhaloimed
  • 3
  • 2
LVL 13

Accepted Solution

petmagdy earned 2000 total points
ID: 12406002
no I tried this on Nokia emulators it works up and down don't warry :)

u can get the nokia emulators for free after registration at:


Author Comment

ID: 12468111
Can you please specify which emulator did you use. I tried few and it seemed to have the same problem.
LVL 13

Expert Comment

ID: 12468412
like Nokia series 60

Author Comment

ID: 12706138
I found Nokia emulator where it kind of works. But what I see is when focus is at Item in the middle of the row and up arrow is pressed, the focus goes to the first Item of the row above, implementation does not move the focus to the Item that is above an Item where focus was.

Is this normal behaviour or this is also problem of implementation/emulator? Did you ever see emulator where focus moves to the Item above on up arrow.
LVL 13

Expert Comment

ID: 12708925
yes it is normal

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question