且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java:如何只选择一个jtable中的一个单元格而不是整个行

更新时间:2023-01-25 20:48:21

CellRenderers用于呈现单元格内容.如果要查找单击鼠标所在的单元格,请使用MouseListener并在mouseClicked方法中找到该单元格.

CellRenderers are used for rendering the cell contents. If you want to find the cell in which the mouse clicked, use a MouseListener and in the mouseClicked method find the cell.