Table - Checkbox-Caption

Hi,
I have a table with data from JPA.
There are many boolean columns.
Vaadin-table generates a caption-text right to each checkbox.
How can I get rid of these captions?
There shold be only the checkbox without the text.

Many thanks for your help!
Manfred

Vaadin 7.2.3; Eclipselink 2.5.1

15237.jpg

If you are using the editable mode in the table, you can override the default field factory. Extend the default fieldfactory (the DefaultFieldFactory class) and check if it returns a checkbox. If it does, simply remove the caption. A crude way, but should work fine for your case.

Thomas, many thanks - it works!
Here the Code I use (f. Vaadin 7.2.3):

table.setEditable(true);
table.setTableFieldFactory(new MyFieldFactory());

class MyFieldFactory extends DefaultFieldFactory {
@Override
public Field createField(Container container, Object itemId, Object propertyId, Component uiContext) {
Field f = super.createField(container, itemId, propertyId, uiContext);
if (f.getClass().equals(CheckBox.class)) {
f.setCaption(“”);
}
return f;
}
}