×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2010
    Posts
    118

    LCD UI PROBLEM (help? anyone?)

    Hi developers.. I'm having a problem with my own made Inbox where a list of items is shown in the form

    looks like this on screen: (imagine this as an inbox list)

    Message 1
    Message 2
    Message 3
    Message 4

    HOW am I able to access (read) the highlighted item for example "Message 2"? Is there an index on the list that I should use in order to access the highlighted item?
    As of now, I can only access "Message 1" even if I'm pressing at "Message 4"..

    Any help would be appreciated.. thanks

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: LCD UI PROBLEM (help? anyone?)

    Take a look at the JavaDocs for the List class (I'm assuming you're using List).

    int getSelectedIndex() Returns the index number of an element in the List that is selected.

    String getString(int elementNum) Gets the String part of the element referenced by elementNum.
    Graham.

Similar Threads

  1. KXML Problem regarding display (help? anyone?)
    By binsint in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2011-01-28, 13:19
  2. Replies: 4
    Last Post: 2010-06-22, 12:53
  3. When LCD is off I want my timer to stop refreshing my custom UI
    By thehappycoder in forum Mobile Java General
    Replies: 2
    Last Post: 2009-03-09, 07:36
  4. Help: 7600 Lcd Replacement
    By laydeelewi2355 in forum General Development Questions
    Replies: 0
    Last Post: 2005-07-14, 18:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×