jtable disable row selection

Java
setRowSelectionAllowed(boolean rowSelectionAllowed);
Source

Also in Java: