]> source.dussan.org Git - vaadin-framework.git/commitdiff
windows to subwindows in fb
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 3 Oct 2007 06:53:14 +0000 (06:53 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 3 Oct 2007 06:53:14 +0000 (06:53 +0000)
svn changeset:2427/svn branch:trunk

src/com/itmill/toolkit/demo/features/FeatureWindow.java

index 1e185300ef047d70d14c114b8489f3e42c51e355..811d5d6d807ba3305efcdcd3d213bb2539008036 100644 (file)
@@ -116,7 +116,7 @@ public class FeatureWindow extends Feature implements Window.CloseListener {
 
                propertyPanel.commit();
 
-               getApplication().addWindow(demoWindow);
+               getApplication().getMainWindow().addWindow(demoWindow);
 
                demoWindow.removeAllComponents();
 
@@ -136,7 +136,7 @@ public class FeatureWindow extends Feature implements Window.CloseListener {
        }
 
        public void delWin() {
-               getApplication().removeWindow(demoWindow);
+               getApplication().getMainWindow().removeWindow(demoWindow);
                // allow user to change window name tag (before window is created)
                windowProperties.getField("name").setEnabled(true);
                windowProperties.getField("name").setReadOnly(false);