Solved

J2ME: Vertical Item traversing

Posted on 2004-10-25
719 Views
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)
0
Question by:chochomhaloimed
    5 Comments
     
    LVL 13

    Accepted Solution

    by:
    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:

    http://www.forum.nokia.com/main.html
    0
     

    Author Comment

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

    Expert Comment

    by:petmagdy
    like Nokia series 60
    0
     

    Author Comment

    by:chochomhaloimed
    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.
    0
     
    LVL 13

    Expert Comment

    by:petmagdy
    yes it is normal
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    931 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now