1

有谁知道我将如何选择一行JTable,然后突出显示另一行JTable

ListSelectionListener[] listeners = leftJTable.getListeners(ListSelectionListener.class);
4

1 回答 1

1

是的,两个表可以共享相同的ListSelectionModel

JTable left = new JTable(...);
JTable right = new JTable(...);
right.setSelectionModel(left.getSelectionModel());
于 2013-02-22T03:49:59.633 回答