From: Matti Tahvonen Date: Wed, 3 Oct 2007 06:53:14 +0000 (+0000) Subject: windows to subwindows in fb X-Git-Tag: 6.7.0.beta1~5917 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=994483040313aae066439367d3e12475f1edbdab;p=vaadin-framework.git windows to subwindows in fb svn changeset:2427/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/features/FeatureWindow.java b/src/com/itmill/toolkit/demo/features/FeatureWindow.java index 1e185300ef..811d5d6d80 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureWindow.java +++ b/src/com/itmill/toolkit/demo/features/FeatureWindow.java @@ -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);