JTable - Selected Row click event

前端 未结 5 935
名媛妹妹
名媛妹妹 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 09:58

    I would recommend using Glazed Lists for this. It makes it very easy to map a data structure to a table model.

    To react to the mouseclick on the JTable, use an ActionListener: ActionListener on JLabel or JTable cell

提交回复
热议问题