From 1355dd0fc925a79ba4cf53de76d85155e820c89e Mon Sep 17 00:00:00 2001
From: Matti Tahvonen // If we already have the requested window, use it
+ * implementation example:
*
+ w = new Window(name);
+ // set windows name to the one requested
+ w.setName(name);
+ // add it to this application
+ addWindow(w);
+ // add some content
+ w.addComponent(new Label("Test window"));
+ }
+ return w;
+ // If we already have the requested window, use it
Window w = super.getWindow(name);
if (w == null) {
-
// If no window found, create it
- w = createNewWindow(name);
- }
- return w;
+ * Note that all returned Window objects must be added to + * this application instance. + * + *
* The method should return null if the window does not exists (and is not * created as a side-effect) or if the application is not running anymore. *
-- 2.39.5