Get row by index from JTable

后端 未结 7 674
情歌与酒
情歌与酒 2021-01-07 10:32

How to get row with index i froj JTable ? I looked at member functions but there is nothing like getRowAt . Can anybody help ?

7条回答
  •  礼貌的吻别
    2021-01-07 11:17

    Try something like this

    private void getIndexRow(){
        int i;
        int row = 0;
        int column = 0;
        i=Integer.parseInt(myTable.getValueAt(row,column).toString());
    }
    

提交回复
热议问题