Problem according to the Vaadin docs to set a Tab caption do the following.
// Set an attribute using the returned reference
tabsheet.addTab(myTab).setCaption("My Tab");
When using the Vaadin designer you already have a Tab created within the design.
How do you set the name of the Tab?
You resolve this by first getting the Tab from the Design and then setting the caption for the Tab. addTab()
will add another Tab.
// Set an attribute using the returned reference
tabsheet.getTab(myTab).setCaption("My Tab");