0

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?

code
  • 4,073
  • 3
  • 27
  • 47

1 Answers1

0

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");
code
  • 4,073
  • 3
  • 27
  • 47