![](/img/trans.png)
[英]JTable remove row by clicking a cell with a custom DeleteCellEditor from the same JTable
[英]retrieve the row number of a JTable from a cell
我需要知道是否有可能检索JTable的行号以单击位于表内部的按钮。 我需要从特定单元格获取行数
当您单击表格中的单元格时,该行将被选中。
要确定选定的行,可以使用:
int row = table.getSelectedRow();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.