diff options
Diffstat (limited to 'src/com/vaadin/demo/util/SampleDirectory.java')
-rw-r--r-- | src/com/vaadin/demo/util/SampleDirectory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/demo/util/SampleDirectory.java b/src/com/vaadin/demo/util/SampleDirectory.java index 2e4c785024..a82b9bedc8 100644 --- a/src/com/vaadin/demo/util/SampleDirectory.java +++ b/src/com/vaadin/demo/util/SampleDirectory.java @@ -60,14 +60,14 @@ public class SampleDirectory { } // Add failure notification as an Panel to main window final Panel errorPanel = new Panel("Demo application error"); - errorPanel.setStyle("strong"); + errorPanel.setStyleName("strong"); errorPanel.setComponentError(new SystemError( "Cannot provide sample directory")); errorPanel.addComponent(new Label(errorMessage, Label.CONTENT_XHTML)); // Remove all components from applications main window - application.getMainWindow().getLayout().removeAllComponents(); + application.getMainWindow().getContent().removeAllComponents(); // Add error panel - application.getMainWindow().getLayout().addComponent(errorPanel); + application.getMainWindow().getContent().addComponent(errorPanel); return null; } } |