public DirectListBinding(JList list, TabularDataModel model, String displayFieldName, SelectionModel sm) {
super(list, model, displayFieldName, AbstractBinding.AUTO_VALIDATE_NONE);
//create a selection binding
new ListSelectionBinding(sm, list.getSelectionModel());
//create a custom ListModel bound to the entire TabularDataModel
list.setModel(new DataModelToListModelAdapter(model, displayFieldName));
}