[英]retrieve the row number of a JTable from a cell
I need to know if it is possible to retrieve the row number of a JTable to click on a button located on the inside of the table. 我需要知道是否有可能检索JTable的行号以单击位于表内部的按钮。 I need get the numer of row from a specific cell
我需要从特定单元格获取行数
When you click on a cell in a table the row will become selected. 当您单击表格中的单元格时,该行将被选中。
To determine the selected row you can use: 要确定选定的行,可以使用:
int row = table.getSelectedRow();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.