In Vaadin 7.6, underscores in button text could be displayed using:
Button button = new Button("C<u>a</u>ncel");
button.setCaptionAsHtml(true);
The setCaptionAsHtml() method is not available in Flow. Is there a replacement?
This works but feels hackish:
Button button = new Button();
button.getElement().setProperty("innerHTML", "C<u>a</u>ncel");