]> source.dussan.org Git - vaadin-framework.git/commitdiff
NEW - # 2641: Remove the child window from the Calculator example
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sun, 22 Feb 2009 18:17:37 +0000 (18:17 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sun, 22 Feb 2009 18:17:37 +0000 (18:17 +0000)
http://dev.itmill.com/ticket/2641

svn changeset:6930/svn branch:trunk

src/com/itmill/toolkit/demo/Calc.java

index 0955f34d1f5938a3dad0de7bbf99f6506e7b506c..8503f6e9104557526a72fd58be8324a9b1bc4ff2 100644 (file)
@@ -23,9 +23,8 @@ public class Calc extends com.itmill.toolkit.Application {
     @Override
     public void init() {
 
-        // Place the layout to a floating dialog inside the browser main window
-        setMainWindow(new Window("Calculator Application"));
-        getMainWindow().addWindow(new Window("Calc", layout));
+        // Place the layout to the browser main window
+        setMainWindow(new Window("Calculator Application", layout));
 
         // Create and add the components to the layout
         layout.addComponent(display, 0, 0, 3, 0);