Hi,

I'm trying to get a jtable with two columns in it. The first column is just boolean values which I'd like to display as checkboxes and the second column contains strings (representing table names that the user can select using the checkbox).

So far I have managed to get the table populated with the data, but I don't know how to render the cells in the first column to be checkboxes.

I also need to get the values (from the 2nd column) of all the selected items.

note that there's also a combo box being populated with the same data here as well.

Code:
	private void populateTables() {
	    
	    cmbStagingTable.removeAllItems();
	    
	    DefaultTableModel model  = new DefaultTableModel();
	    model.addColumn("Include");
	    model.addColumn("Table");
	    
 	    List tables = core.dt.getAllTables(core.dbInfo);
	    for (int x = 0; x < tables.size(); x++) {
	        cmbStagingTable.addItem(tables.get(x));
 
	        Vector row = new Vector();
	        row.add(Integer.toString(0));
	        row.add(tables.get(x));
	        model.addRow(row);
	        
	    }
 
	    tblDestTables.setModel(model);
}