@@ -758,11 +758,11 @@ Container parent = this.parent; if (parent != null && parent.peer == null) { parent.addNotify(); } if (peer == null) { - peer = getToolkit().createWindow(this); + peer = getComponentFactory().createWindow(this); } synchronized (allWindows) { allWindows.add(this); } super.addNotify();