When I click on the checkbox, only the cell where the checkbox is is selected, as I do so that the entire row is selected at the moment that I select the checkbox. This is my Render class.
public class Mirender extends DefaultTableCellRenderer {
@Override
public Component getTableCellRendererComponent(
JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
{
super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column);
//Alinear al centro los valores de una fila del JTable
setHorizontalAlignment(SwingConstants.CENTER);
return this;
}
}