JTable - Selected Row click event

前端 未结 5 944
名媛妹妹
名媛妹妹 2021-02-02 09:36

I have a Jtable that is populated with a linkedlist through an AbstractTableModel.

What I want to do is when I click (left-mouse click) on a row in the JTable, the linke

5条回答
  •  死守一世寂寞
    2021-02-02 10:00

    You can use the MouseClicked event:

    private void tableMouseClicked(java.awt.event.MouseEvent evt) {
     // Do something.
    }
    

提交回复
热议问题