Loading...
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
TUTORIAL

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

set special style for a combobox

Christoph Stadler
6 years ago Jun 25, 2015 8:50am
Marius Reinwald
6 years ago Jun 25, 2015 12:15pm

Not sure if i understood your problem correctly but when you use

box.setStyleName("fdsa");
box.setStyleName("asdf");

"fdsa" will be overwritten by "asdf" so your combobox will only have the style "asdf". Better use:

box.setStyleName("fdsa");
box.addStyleName("asdf");