getSelectedRow() method

Returns the (0-based) row of the selected item.

Syntax

public int getSelectedRow ()

Returns

the selected row or -1 if nothing is selected