I want to solve a small problem that I have about a project in java and it is that I have a checkbox in a table but he only shows me the value true or false, I want him to show me his corresponding checkbox someone knows how I can solve it.
while (rs.next()) {
Object[] filas = new Object[CantidadColumnas];
filas[0] = rs.getObject(1);
filas[1] = rs.getObject(2);
filas[2] = rs.getObject(3);
filas[3] = formato0d.format(rs.getObject(4));
filas[4] = rs.getObject(5);
filas[5] = formato2d.format(rs.getObject(6));
JCheckBox checkbox = new checkBoxPrueba();
if (rs.getBoolean(7)){
checkbox.setSelected(true);
}else{
checkbox.setSelected(false);
}
filas[6] = checkbox;
//filas[6] = new JCheckBox().setSelected(true);
modelo1.addRow(filas);
}