Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Anthony Petrov
On 1/21/2009 9:16 PM Dmitri Trembovetski wrote: Perhaps it would make sense to move the graphicsConfig member to the Window class and use its value for Component.getGraphicsConfiguration()? A component not currently contained in a toplevel window obviously should have a null GC. Thoughts? M

Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Dmitri Trembovetski
Hi Anthony, Anthony Petrov wrote: Hi Dmitri, On 1/21/2009 8:43 PM Dmitri Trembovetski wrote: implementation of this method in the Container class that recursively calls this method for every child of the container. The question is: is it really possible for one toplevel to contain compo

Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Anthony Petrov
Hi Dmitri, On 1/21/2009 8:43 PM Dmitri Trembovetski wrote: implementation of this method in the Container class that recursively calls this method for every child of the container. The question is: is it really possible for one toplevel to contain components having different GraphicsDevice's

Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Dmitri Trembovetski
Anthony Petrov wrote: Hello 2D and AWT teams, While working on the fix for 6783411 to enable re-parenting heavyweight components between toplevel windows, I found the Component.checkGD() method which verifies equality of GraphicsDevice's (by the way, a minor question: is it correct to check

Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Dmitri Trembovetski
Anthony Petrov wrote: Hi Roman, On 01/21/2009 06:17 PM Roman Kennke wrote: The question is: is it really possible for one toplevel to contain components having different GraphicsDevice's (and/or different GraphicsConfiguration's)? Not sure, but in Xinerama-mode, when half of a window is on

Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Anthony Petrov
Hi Roman, On 01/21/2009 06:17 PM Roman Kennke wrote: The question is: is it really possible for one toplevel to contain components having different GraphicsDevice's (and/or different GraphicsConfiguration's)? Not sure, but in Xinerama-mode, when half of a window is on one screen and the other

[OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Anthony Petrov
Hello 2D and AWT teams, While working on the fix for 6783411 to enable re-parenting heavyweight components between toplevel windows, I found the Component.checkGD() method which verifies equality of GraphicsDevice's (by the way, a minor question: is it correct to check the equality of the GD (

Re: [OpenJDK 2D-Dev] One or many GraphicsConfiguration(s) per toplevel?

2009-01-21 Thread Roman Kennke
Hi Anthony, > While working on the fix for 6783411 to enable re-parenting heavyweight > components between toplevel windows, I found the Component.checkGD() > method which verifies equality of GraphicsDevice's (by the way, a minor > question: is it correct to check the equality of the GD (or GC