Does gui.wtkx specify that the window is maximized? If so, then 'window2' will be on top of and completely obscure 'window'. Note that the Window class is a decoration-less window. If you want window trim, then use the Frame class.
-T On Tue, Feb 23, 2010 at 6:37 AM, Mathias Versichele < [email protected]> wrote: > Hey everybody, > > I know it's possible to load more than one window in pivot, and the sample > code from the windows section in the tutorial seems pretty straightforward. > However, the following code will only show my second window while my first > window is nowhere to be seen (it is in memory): > > @Override > public void startup(Display display, Map<String, String> properties) > throws Exception { > this.display = display; > > wtkxSerializer = new WTKXSerializer(); > window = (Window)wtkxSerializer.readObject(this, "gui.wtkx"); > window.open(display); > > wtkxSerializer = new WTKXSerializer(); > window2 = (Window)wtkxSerializer.readObject(this, "gui.wtkx"); > window2.open(display); > } > > What am I doing wrong ? > > Regards > -- > Mathias Versichele > Bio-ir milieutechnologie / Msc. geografie > Oudburgstraat 16 > 9240 Zele > 0485/16.07.08 >
