tabsheet

Hi
I made a calendar and a timeline.
Now i prepared a tabsheet and i want to add in the first tab the calendar and in the second tab the timeline.
How can i add them?
thanks

Hi

you can do something like this.

Tabsheet tabSheet = new TabSheet();

VerticalLayout verticalLayoutCalendar = new VerticalLayout();
VerticalLayout verticalLayoutTimeline = new VerticalLayout();

verticalLayoutCalendar.setCaption("Calendar");
verticalLayoutTimeline.setCaption("Timeline");

verticalLayoutCalendar.addComponent(getCalendar());
verticalLayoutTimeline.addComponent(getTimeline());

May you need handle the sizes of the layouts.

Greets