Hi,
I’m new to Vaadin. I have read the Vaadin tutorial and parts of the Vaadin book.
I have developed a sample application but fail to set the Vaadin theme.
Here’s my code:
import com.vaadin.Application;
import com.vaadin.ui.*;
public class VaadintestApplication extends Application {
@Override
public void init() {
setTheme("reindeer");
buildMainLayout();
}
private void buildMainLayout() {
setMainWindow(new Window("Address Book Demo application"));
VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
TabSheet tabsheet = new TabSheet();
for(int i=0;i<5;i++){
VerticalLayout ver = new VerticalLayout();
ver.addComponent(new Label("Tab "+i+" content"));
tabsheet.addTab(ver, "Tab "+i, null);
}
layout.addComponent(tabsheet);
this.getMainWindow().addComponent(layout);
TextField editor = new TextField("Sample text:");
this.getMainWindow().addComponent(editor);
this.getMainWindow().setStyleName("back");
}
}
I’d like to set the theme to reindeer black, such as in the demo here: http://demo.vaadin.com/ReindeerTheme
Can someone please help me?