getSelectedColumn和getSelectedRow返回的是第几列和第几行,如果没有获得改值则返回-1
(Returns the index of the first selected column, -1 if no column is selected.)
(Returns the index of the first selected row, -1 if no row is selected.)