FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

j2me getSelectedIndex

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
sosoro



Joined: 19 May 2009
Posts: 1

PostPosted: Tue May 19, 2009 1:10 pm    Post subject: j2me getSelectedIndex Reply with quote

Hello all,

I have a midlet app.


First screen: a list
Second screen: a form

I send information to form, and i verify which item is selected in list: getSelectedIndex.

The problem is when I go back to list and select another item (to send the new item to form): the getSelectedIndex didn't change, remain with the element which I chose first.

Thank you.
Back to top
View user's profile Send private message
Kopernik



Joined: 09 Apr 2009
Posts: 4

PostPosted: Thu May 21, 2009 11:13 pm    Post subject: Try this Reply with quote

Try
Code:

list.setSelectedIndex(0, false);
list.setSelectedIndex(index, true);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB