2011-06-17 23 views

cevap

13
ListSelectionModel selectionModel = 
    table.getSelectionModel(); 
selectionModel.setSelectionInterval(start, end); 
8

Bu SelectionModel

table.getSelectionModel().setSelectionInterval(int index0, int index1) 
+0

:-) doğrudan kapak yöntemlerini bulduk birini seçmek zorunda kaldı cevabı onaylamak için Newbie'yi destekledim ve her iki cevabı da cevaplandırdım. Yalnızca – JVerstry

17

haha ​​aracılığıyla sonsuz soru sağlanır - Howard ne de Cris ne

table.setRowSelectionInterval(first, last) 
table.addRowSelectionInterval(first, last) 
+0

, 'table.getSelectedRow()' çalışmıyor. – Thufir