Form Caption setter method

Hello All,

I am new to vaadin and didn’t able to understand how form automatically provides the name caption before our component as defined in DataSource.
Their must be some method behind it, can anyone describe and name that method???

Thanks in Advance!!!

It is Field#setCaption(String). You can change the caption by using a FormFieldFactory, creating your own Fields (based on the property’s type) and providing your own caption for it (typically based on the property’s id).

Thanks Tobias for help, I have used it and it works.
Now the problem I am facing is, I want to set caption of a checkbox into a form on left hand side with same alignment as textbox or other fields caption do. Is it possible to do so?

See my answer
in your thread over here