How manipulate CheckBox in Table?

Hello guys, I have a problem with a table that gives me a headache. I have a Customer class that has a CheckBox property, this to create a Container Bean from this and assign it directly to the table in this way:

BeanItemContainer customerContainer = new BeanItemContainer(Customer.class);

for (Customer c : customers) { // where customers is a List of Customer extract of the data base
customerContainer.addBean(c);
}

t.setContainerDataSource(dataContainer); // where t is my table

Works fine and shows me the CheckBox in the table.

But how to select the row when the CheckBox is checked? and how mark all checkbox at the same time?

Regards,
A Dev