Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JTableある行を選択して別の行を強調表示する方法を知っている人はいますJTableか?
JTable
ListSelectionListener[] listeners = leftJTable.getListeners(ListSelectionListener.class);
はい、2つのテーブルが同じものを共有できますListSelectionModel:
ListSelectionModel
JTable left = new JTable(...); JTable right = new JTable(...); right.setSelectionModel(left.getSelectionModel());