class CheckBoxTableModel extends AbstractTableModel {

    @Override
    public Object getValueAt(int rowIndex, int columnIndex)
    {
        checkRowIndex(rowIndex);
        if (columnIndex == 0)
        {
            return myBooleans.get(rowIndex);
        }
        else if (columnIndex == 1)
        {
            return myValues.get(rowIndex);
        }
        else
        {
            throw new IllegalArgumentException("Column index out of bounds: " + columnIndex);
        }
    }

    public  CheckBoxTableModel(String checkBoxHeader, String valueHeader, Boolean initialCheckBoxState,
            Collection<? extends String> values);

}