Table help...

What is the best way to create a data model (for use with Table) for a ArrayList of obejcts, such as;

Customer {
int id;
String name;
String address

In swing your model just uses getValueAt() and use select the appropriate item from your data.

Form the book, I’m not clear what the best way to do this is?

Javadoc BeanItemContainer
In your case the BeanItemContainer might be a good idea as you can build it directly using a Collection ( ). If you want something with less memory usage you should use the IndexedContainer or build a container yourself.

For more Information on Containers click
here (Book of Vaadin Collecting Items in Containers)