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.

Button.STYLE_LINK

shubha thirthahalli
1 decade ago Mar 02, 2010 10:05pm
Kim Leppänen
1 decade ago Mar 03, 2010 6:31am

shubha thirthahalli: I tried the same example as this, but my application for some reason not recognising the style for the button at all, b.setStyleName("link") or b.setStyleName("Button.STYLE_LINK") is not working as intended. Please help.

Define the STYLE_LINK without quotes, like this:

b.setStyleName(Button.STYLE_LINK);
Last updated on Mar, 3rd 2010
Jouni Koivuviita
1 decade ago Mar 03, 2010 9:55am