/ Published in: Java

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
tblTable.setAutoCreateRowSorter(true); //will make the colums sortable tblTable.setCellSelectionEnabled(false); //will diable the selection of single cells tblTable.setRowSelectionAllowed(true); //set it so that when you click a row, the entire row will be selected tblTable.setColumnSelectionAllowed(false); //set it so that you can't select entire columns tblTable.getTableHeader().setReorderingAllowed(false); //disable the changing of column positions
Comments
