Making a JButton clickable inside a JTable

前端 未结 6 1649
滥情空心
滥情空心 2020-12-05 23:38

Here is the screenshot of what I want to do :

\"enter

What\'s happening there

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 00:20

    Overload your Table model, and set isCellEditable(int, int) return false for the cells with buttons.

    It works great in with a MouseListener added to the table.

提交回复
热议问题