Re: [Java-gnome-developer] multiple windows
Brought to you by:
afcowie
From: Daniel G. <dan...@gm...> - 2005-10-31 15:15:55
|
Thanks... but i had already put this values in my glade project. In other way, i have tried put the values in code and the result is the same: the child window is opened out the parent window. Its possible do that i want in java-gnome? I think that isn't easy... I hoped that was than easy like set the parent or childs with a method. Why methods like getParent() and not exists setParent()??? What widgets must put into parent window to contains their childs windows?? Is my point of view completely wrong?? Is valid to me a link o a document that explains this... I searched into API, google... Sorry for my insistence, but this is becoming something personal... Thanks in advance!! El lun, 31-10-2005 a las 07:45 -0500, Jeff Morgan escribió: > Daniel, > > The primary way to identify a window as a "parent" is to construct > it as a GtkWindow and then use the GtkWindowType GTK_WINDOW_TOPLEVEL. > The other windows can be created with the GtkWindowType > GTK_WINDOW_POPUP. You will of course have to set the > modality based upon your application needs. > > -Jeff > > > On 10/31/05, Daniel Gutierrez <dan...@gm...> wrote: > Thanks Andrew, > > i think that i don't understand you or i not explain the > problem > correctly, but i have same problem: i don't know how set the > parent > window in the application. I don't know if is a property in a > Window > object or i must set in each soon window who is his parent (i > have > getParentWindow() method, but not setParentWindow()). > > I suppose that this is a trivial thing, but after search a lot > of time, > i not find the solution. > > Thanks in advance!! > > El dom, 30-10-2005 a las 19:35 -0500, Andrew Cowie escribió: > > On Sun, 2005-30-10 at 19:31 +0100, Daniel Gutierrez wrote: > > > > > tell to glade which window must be focused when the > program starts > > > > This may not be exactly what you want, but calling > Window.present() may > > do the trick: > > > > >From the JavaDoc: > > > > Presents a window to the user. This may mean raising > the window > > in the stack order, deiconifying it, moving it to > the current > > desktop, and/or giving it the keyboard focus, > possibly dependent > > on the user's platform, window manager, and > preferences. If the > > Window is hidden it will also call show as well. > > > > [that's org.gnu.gtk.Window, not org.gnu.gdk.Window]. With > any Widget w, > > I tend to call > > > > Window top = w.getToplevel (); > > top.present(); > > > > When using Glade, I usually have Window _top as a class > instance > > variable that I populate as soon as I get my Glade file > open, > > > > LibGlade glade = new LibGlade(" file.glade", this); > > _top = (Window) glade.getWidget("my_window_name"); > > ... > > _top.present(); > > > > so that I always have it around. I find I need it a lot. > > > > AfC > > Toronto > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End > of 2005 > Visit http://www.jboss.com/services/certification for more > information > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > |