semantic-dev
semantic-dev

Reputation: 1123

Retrieve index of selected row in j2me TableItem

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

Answers (1)

COD3BOY
COD3BOY

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

Related Questions