final LegacyWindow w = new LegacyWindow();
w.addComponent(new Button("Show the name of the application",
new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
w.showNotification("Name of this window = "
+ w.getName());
}
}));
w.addComponent(new Label("<a href='" + getURL().toExternalForm() + "'>"
+ getURL().toExternalForm() + "</a>", ContentMode.HTML));