Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

change menubar style

Dominik Grimmeisen
7 years ago Jan 13, 2016 11:12pm
Joacim Päivärinne
7 years ago Jan 15, 2016 3:15pm

Hey Dom,

This should do it.

protected void init(VaadinRequest request) {
  final HorizontalLayout layout = new HorizontalLayout();


  MenuBar mb = new MenuBar();
  mb.addItem("", FontAwesome.POWER_OFF, null);

  layout.addComponents(mb, new Label("Testing"));
Dominik Grimmeisen
7 years ago Jan 15, 2016 4:05pm
Dominik Grimmeisen
7 years ago Jan 17, 2016 4:30pm

Ok, today i got the time and try it. 

It works fine. Thanks!