Re: [Java-gnome-developer] Glade file question
Brought to you by:
afcowie
From: Adam J. <ajo...@re...> - 2005-12-20 14:45:42
|
Scott J. Harmon wrote: >bas...@li... wrote: > > >>Il giorno mar, 20/12/2005 alle 10.11 +1100, Andrew Cowie ha scritto: >>On Mon, 2005-19-12 at 22:33 +0100, bas...@li... wrote: >> >>Thanks Andrew, but I have another thing to understand. In particular, when I load the glade file with >> >>LibGlade glade = new LibGlade("foo.glade", this); >> >>and launch the main, ALL forms are displayed! What about if I want to load a single form when I pressed a button? Are forms managed in the same class file? >> >> >> > >Try the other constructor, which allows you to specify the window: >LibGlade gladeMain = new LibGlade("foo.glade", this, "main"); //Loads main > >LibGlade gladeMain = new LibGlade("foo.glade", this, "search"); //Loads >search > >LibGlade gladeMain = new LibGlade("foo.glade", this, "about"); //Loads about > >Scott. > > As another alternative you can set all the windows to not be visible in glade, and then that way they will stay hidden until you explicitly show them. Adam |