Click to See Complete Forum and Search --> : Regarding implementation of check boxes in JTAble


bhashetty
12-17-2001, 09:09 PM
Dear All,

Please let me know how to implement checkboxes/ toggle buttons with in the
JTable.

Regards,
Sunil

Rishi Sahni`
01-04-2002, 11:11 PM
JCheckBox chkOvrReq = new JCheckBox();
chkOvrReq.setBackground(Color.white);
chkOvrReq.setHorizontalAlignment(SwingConstants.CENTER);
ivjScrollPaneTable.getColumnModel().getColumn(3).setCellEditor(
new DefaultCellEditor(chkOvrReq));

add above lines of code to add JCheck box in ur table

Rishi