Are there any good books or website that go over creating a JTable
? I want to make one column editable. I would like to actually put a inherited JCheckBox
If you are trying to use a simple JTable
with 1 column editable and you know the column location you could always use default table model and overload the isCellEditable
call.
something like this :
myTable.setModel(new DefaultTableModel(){
@Override
public boolean isCellEditable(int row, int column) {
if (column == x) {
return true;
} else
return false;
}
});
And for the check box create a renderer class
MyCheckBoxRenderer extends JCheckBox implements TableCellRenderer