Thread: [Java-gnome-developer] multiple windows
Brought to you by:
afcowie
From: Daniel G. <dan...@gm...> - 2005-10-30 18:31:28
|
Hi, i want create a "father" window and its "soons", but i dont know how tell to glade wath window must be focused when the program starts and the properties to set into window. How can i do it? Thanks!! PD: sorry for my english |
From: Andrew C. <an...@op...> - 2005-10-31 00:35:09
|
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 -- Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Daniel G. <dan...@gm...> - 2005-10-31 12:04:23
|
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 > |
From: Jeff M. <ku...@gm...> - 2005-10-31 12:45:56
|
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=F3: > > 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 =3D 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 =3D new LibGlade("file.glade", this); > > _top =3D (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 > |
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 > > |
From: Igor F. <if...@re...> - 2005-10-31 15:28:06
|
Hi Daniel, I'm not sure if this is exactly what you are looking for (parent-child relationship), but there is an attribute in Glade which can set a window to not be visible on start-up. If you go to the 'Common' tab in the 'Properties' window in glade and set the window's 'Visible' property to 'No' then it will not be visible on startup. Then you can set it to Yes from the application. Igor On Mon, 2005-10-31 at 16:15 +0100, Daniel Gutierrez wrote: > Thanks... >=20 > 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. >=20 > 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()??? >=20 > What widgets must put into parent window to contains their childs > windows?? >=20 > Is my point of view completely wrong?? >=20 > Is valid to me a link o a document that explains this... I searched int= o > API, google... >=20 > Sorry for my insistence, but this is becoming something personal... >=20 > Thanks in advance!! >=20 >=20 > El lun, 31-10-2005 a las 07:45 -0500, Jeff Morgan escribi=F3: > > Daniel, > >=20 > > 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=20 > > GTK_WINDOW_POPUP. You will of course have to set the > > modality based upon your application needs. > >=20 > > -Jeff > >=20 > >=20 > > On 10/31/05, Daniel Gutierrez <dan...@gm...> wrote: > > Thanks Andrew, > > =20 > > 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=20 > > object or i must set in each soon window who is his parent (i > > have > > getParentWindow() method, but not setParentWindow()). > > =20 > > I suppose that this is a trivial thing, but after search a lo= t > > of time, > > i not find the solution.=20 > > =20 > > Thanks in advance!! > > =20 > > El dom, 30-10-2005 a las 19:35 -0500, Andrew Cowie escribi=F3= : > > > On Sun, 2005-30-10 at 19:31 +0100, Daniel Gutierrez wrote: > > > > > > > tell to glade which window must be focused when the > > program starts=20 > > > > > > 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 raisin= g > > the window=20 > > > 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=20 > > > 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 =3D 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 =3D new LibGlade(" file.glade", this= ); > > > _top =3D (Window) glade.getWidget("my_window_name")= ; > > > ... > > > _top.present(); > > > > > > so that I always have it around. I find I need it a lot. > > > > > > AfC > > > Toronto > > > > > =20 > > =20 > > =20 > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss Training Course=20 > > Free Certification Exam for All Training Attendees Through En= d > > of 2005 > > Visit http://www.jboss.com/services/certification for more > > information > > _______________________________________________=20 > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-devel= oper > >=20 > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > 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 |
From: Daniel G. <dan...@gm...> - 2005-10-31 15:31:15
|
I want to develop an application "TOAD like", with one "parent" window and others that will be opened into the "parent". Only this... Thanks!! El lun, 31-10-2005 a las 10:27 -0500, Igor Foox escribió: > Hi Daniel, > > I'm not sure if this is exactly what you are looking for (parent-child > relationship), but there is an attribute in Glade which can set a window > to not be visible on start-up. If you go to the 'Common' tab in the > 'Properties' window in glade and set the window's 'Visible' property to > 'No' then it will not be visible on startup. Then you can set it to Yes > from the application. > > Igor > > On Mon, 2005-10-31 at 16:15 +0100, Daniel Gutierrez wrote: > > 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 > > > > > > > > > > > > > > ------------------------------------------------------- > > 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 > |
From: Adam J. <ajo...@re...> - 2005-10-31 15:32:35
|
Daniel, I think what you're trying to do is something like JDesktop in Swing, where you have one window that has multiple other windows embedded within it (kindof like some IDEs or word processors have). AFAIK there's no built in support in GTK for that, although you could probably use Layout or Fixed to create something similar. (I've never tried adding a window to a Layout or Fixed before, but it would be worth a shot) Hope that helps, Adam Daniel Gutierrez wrote: >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!! > > > |
From: Daniel G. <dan...@gm...> - 2005-10-31 15:39:35
|
Adam, thanks to advice me that now is not possible do that i wanted. Is important to know what can do the tools that we use... I will try that you say me... Very thanks!! El lun, 31-10-2005 a las 10:32 -0500, Adam Jocksch escribió: > Daniel, > > I think what you're trying to do is something like JDesktop in Swing, > where you have > one window that has multiple other windows embedded within it (kindof > like some IDEs > or word processors have). AFAIK there's no built in support in GTK for > that, although > you could probably use Layout or Fixed to create something similar. > (I've never tried adding > a window to a Layout or Fixed before, but it would be worth a shot) > > Hope that helps, > > Adam > > Daniel Gutierrez wrote: > > >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!! > > > > > > > > > > ------------------------------------------------------- > 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 |
From: Igor F. <if...@re...> - 2005-10-31 15:37:32
|
On Mon, 2005-10-31 at 16:31 +0100, Daniel Gutierrez wrote: > I want to develop an application "TOAD like", with one "parent" window > and others that will be opened into the "parent". Only this... Hi Daniel, I'm not sure what TOAD is, but if you could provide a link to a screenshot to something similar to what you're trying to achieve it might be helpful. Igor >=20 > El lun, 31-10-2005 a las 10:27 -0500, Igor Foox escribi=F3: > > Hi Daniel, > >=20 > > I'm not sure if this is exactly what you are looking for (parent-chil= d > > relationship), but there is an attribute in Glade which can set a win= dow > > to not be visible on start-up. If you go to the 'Common' tab in the > > 'Properties' window in glade and set the window's 'Visible' property = to > > 'No' then it will not be visible on startup. Then you can set it to Y= es > > from the application. > >=20 > > Igor > >=20 > > On Mon, 2005-10-31 at 16:15 +0100, Daniel Gutierrez wrote: > > > Thanks... > > >=20 > > > 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 c= hild > > > window is opened out the parent window. > > >=20 > > > 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 metho= d. > > > Why methods like getParent() and not exists setParent()??? > > >=20 > > > What widgets must put into parent window to contains their childs > > > windows?? > > >=20 > > > Is my point of view completely wrong?? > > >=20 > > > Is valid to me a link o a document that explains this... I searched= into > > > API, google... > > >=20 > > > Sorry for my insistence, but this is becoming something personal... > > >=20 > > > Thanks in advance!! > > >=20 > > >=20 > > > El lun, 31-10-2005 a las 07:45 -0500, Jeff Morgan escribi=F3: > > > > Daniel, > > > >=20 > > > > The primary way to identify a window as a "parent" is to construc= t > > > > it as a GtkWindow and then use the GtkWindowType GTK_WINDOW_TOPLE= VEL. > > > > The other windows can be created with the GtkWindowType=20 > > > > GTK_WINDOW_POPUP. You will of course have to set the > > > > modality based upon your application needs. > > > >=20 > > > > -Jeff > > > >=20 > > > >=20 > > > > On 10/31/05, Daniel Gutierrez <dan...@gm...> wrote: > > > > Thanks Andrew, > > > > =20 > > > > 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=20 > > > > object or i must set in each soon window who is his paren= t (i > > > > have > > > > getParentWindow() method, but not setParentWindow()). > > > > =20 > > > > I suppose that this is a trivial thing, but after search = a lot > > > > of time, > > > > i not find the solution.=20 > > > > =20 > > > > Thanks in advance!! > > > > =20 > > > > El dom, 30-10-2005 a las 19:35 -0500, Andrew Cowie escrib= i=F3: > > > > > On Sun, 2005-30-10 at 19:31 +0100, Daniel Gutierrez wro= te: > > > > > > > > > > > tell to glade which window must be focused when the > > > > program starts=20 > > > > > > > > > > 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 ra= ising > > > > the window=20 > > > > > 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=20 > > > > > Window is hidden it will also call show as wel= l. > > > > > > > > > > [that's org.gnu.gtk.Window, not org.gnu.gdk.Window]. Wi= th > > > > any Widget w, > > > > > I tend to call > > > > > > > > > > Window top =3D 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 =3D new LibGlade(" file.glade", = this); > > > > > _top =3D (Window) glade.getWidget("my_window_na= me"); > > > > > ... > > > > > _top.present(); > > > > > > > > > > so that I always have it around. I find I need it a lot. > > > > > > > > > > AfC > > > > > Toronto > > > > > > > > > =20 > > > > =20 > > > > =20 > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by the JBoss Inc. > > > > Get Certified Today * Register for a JBoss Training Cours= e=20 > > > > Free Certification Exam for All Training Attendees Throug= h End > > > > of 2005 > > > > Visit http://www.jboss.com/services/certification for mor= e > > > > information > > > > _______________________________________________=20 > > > > java-gnome-developer mailing list > > > > jav...@li... > > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-d= eveloper > > > >=20 > > > >=20 > > >=20 > > >=20 > > >=20 > > > ------------------------------------------------------- > > > 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 2= 005 > > > Visit http://www.jboss.com/services/certification for more informat= ion > > > _______________________________________________ > > > java-gnome-developer mailing list > > > jav...@li... > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > 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 |
From: Daniel G. <dan...@gm...> - 2005-10-31 15:45:52
|
Igor, TOAD is the name of a DDBB developing application. This is a TOra screenshot, a "TOAD like" program http://tora.sourceforge.net/misc.html You can see child windows into the parent window Thanks!! El lun, 31-10-2005 a las 10:37 -0500, Igor Foox escribió: > On Mon, 2005-10-31 at 16:31 +0100, Daniel Gutierrez wrote: > > I want to develop an application "TOAD like", with one "parent" window > > and others that will be opened into the "parent". Only this... > > Hi Daniel, I'm not sure what TOAD is, but if you could provide a link to > a screenshot to something similar to what you're trying to achieve it > might be helpful. > > Igor > > > > > > El lun, 31-10-2005 a las 10:27 -0500, Igor Foox escribió: > > > Hi Daniel, > > > > > > I'm not sure if this is exactly what you are looking for (parent-child > > > relationship), but there is an attribute in Glade which can set a window > > > to not be visible on start-up. If you go to the 'Common' tab in the > > > 'Properties' window in glade and set the window's 'Visible' property to > > > 'No' then it will not be visible on startup. Then you can set it to Yes > > > from the application. > > > > > > Igor > > > > > > On Mon, 2005-10-31 at 16:15 +0100, Daniel Gutierrez wrote: > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > 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 > |
From: Joao V. <jvi...@ya...> - 2005-11-06 23:52:36
|
That's called an "MDI interface". Usability studies shows MDI most of the times is bad interface, and, because of that, Gtk doesn't provide an MDI component (consequently, there isn't one in Java-Gnome). There are 2 solutions: using tabs (doesn't feel 'right' in every situation though) or simply using separate windows - like Gimp does (and is heavily critisized for doing it - lol :D). Cheers, J.V. --- Daniel Gutierrez <dan...@gm...> escreveu: > Igor, > > TOAD is the name of a DDBB developing application. > This is a TOra screenshot, a "TOAD like" program > > http://tora.sourceforge.net/misc.html > > You can see child windows into the parent window > > Thanks!! > > > El lun, 31-10-2005 a las 10:37 -0500, Igor Foox escribió: > > On Mon, 2005-10-31 at 16:31 +0100, Daniel Gutierrez wrote: > > > I want to develop an application "TOAD like", with one "parent" window > > > and others that will be opened into the "parent". Only this... > > > > Hi Daniel, I'm not sure what TOAD is, but if you could provide a link to > > a screenshot to something similar to what you're trying to achieve it > > might be helpful. > > > > Igor > > > > > > > > > > El lun, 31-10-2005 a las 10:27 -0500, Igor Foox escribió: > > > > Hi Daniel, > > > > > > > > I'm not sure if this is exactly what you are looking for (parent-child > > > > relationship), but there is an attribute in Glade which can set a window > > > > to not be visible on start-up. If you go to the 'Common' tab in the > > > > 'Properties' window in glade and set the window's 'Visible' property to > > > > 'No' then it will not be visible on startup. Then you can set it to Yes > > > > from the application. > > > > > > > > Igor > > > > > > > > On Mon, 2005-10-31 at 16:15 +0100, Daniel Gutierrez wrote: > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > ------------------------------------------------------- > 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 > _______________________________________________________ Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ |
From: Andrew C. <an...@op...> - 2005-10-31 15:59:48
|
On Mon, 2005-31-10 at 16:45 +0100, Daniel Gutierrez wrote: > You can see child windows into the parent window I'm no expert, but my sense of what you've been trying to describe might be called "nested windows". "parent-child" tends to be used in GTK to describe the relationship between Widgets, say, a Label is a child of an HBox, which in turn is a child of a VBox, whose parent is ultimately a Window. The thing about "nested windows" is that, in a effect, you have to create your own Window Manager inside the broad canvas of your application. Tiling, minimizing/maximizing, dragging sub-windows... That sounds like A Lot Of Work (tm) to me :) {GTK/GNOME | Linux} programs tend to use a main application window then independent windows (dialogs for specific information requests or displays, and full windows for, say, composing a new email message) for specific work tasks. Tabs are an intermediate solution. If you're committed to the nested layout because of an application requirement, you might consider looking writing a plugin to Eclipse. But that too would be A Lot Of Work (tm) :) AfC Toronto |
From: Ismael J. <is...@ju...> - 2005-10-31 16:10:09
|
On Mon, 2005-10-31 at 10:59 -0500, Andrew Cowie wrote: [...] > If you're committed to the nested layout because of an application > requirement, you might consider looking writing a plugin to Eclipse. But > that too would be A Lot Of Work (tm) :) [...] Yes, it seems like what he wants is a docking framework. Regards, Ismael |
From: Ismael J. <ml...@ju...> - 2005-10-31 16:14:30
|
On Mon, 2005-10-31 at 10:59 -0500, Andrew Cowie wrote: [...] > If you're committed to the nested layout because of an application > requirement, you might consider looking writing a plugin to Eclipse. But > that too would be A Lot Of Work (tm) :) [...] Yes, it seems like what he wants is a docking framework. Regards, Ismael |
From: Daniel G. <dan...@gm...> - 2005-10-31 16:21:33
|
Well, i didn't think that will be than difficult (in other platforms is easy). I think that tabs will be ok... Thanks to all! El lun, 31-10-2005 a las 16:20 +0000, Ismael Juma escribió: > On Mon, 2005-10-31 at 10:59 -0500, Andrew Cowie wrote: > [...] > > If you're committed to the nested layout because of an application > > requirement, you might consider looking writing a plugin to Eclipse. But > > that too would be A Lot Of Work (tm) :) > [...] > > Yes, it seems like what he wants is a docking framework. > > Regards, > Ismael > > > > ------------------------------------------------------- > 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 |