| View previous topic :: View next topic |
| Author |
Message |
sosoro
Joined: 19 May 2009 Posts: 1
|
Posted: Tue May 19, 2009 1:10 pm Post subject: j2me getSelectedIndex |
|
|
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 |
|
 |
Kopernik
Joined: 09 Apr 2009 Posts: 4
|
Posted: Thu May 21, 2009 11:13 pm Post subject: Try this |
|
|
Try
| Code: |
list.setSelectedIndex(0, false);
list.setSelectedIndex(index, true);
|
|
|
| Back to top |
|
 |
|
|
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
|
|
|
|