AlistairMonkeyFinger
Programmer
Hi,
I'm trying to add a column of checkboxes as the first column in a JTable, i tried
but just get a column of "false", any ideas ?
Alistair![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
I'm trying to add a column of checkboxes as the first column in a JTable, i tried
Code:
myJTable.addColumn(new TableColumn(1,10,new DefaultTableCellRenderer() ,null));
for (int i = 0; i < myJTable.getModel().getRowCount(); i++)
{
myJTable.getModel().setValueAt(new Boolean(false),i,1);
}
but just get a column of "false", any ideas ?
Alistair
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)