Reputation: 1123
I'm using org.netbeans.microedition.lcdui.TableItem
for a j2me mobile application and i have trouble on retrieve index of the row "selected" by the user in a TableItem
.
I know there is getSelectedCellRow()
but if i don't select any row or if i select the first row the method returns always zero so i don't know in which case i'm in.
In which way have you solved ?
Thanks
Upvotes: 0
Views: 333
Reputation: 12092
Actually you need to know that the Tableitem
is not a part of standard API. You can check it out here and we implement it like this, class TableItem, as you can see here, getSelectedCellRow()
actually returns cursorCellX;
and if you go through the implementation you can find yourself the reason for your question,why it returns zero
.
Upvotes: 1