Hello > If I move it from the left monitor (where > it is created) onto the right monitor before the scene is attached and > visible in the frame, I receive > java.lang.IllegalArgumentException: adding a container to a container on > a different GraphicsDevice
You could remember the GraphicsConfiguration the window was created on (getGraphicsConfiguration()) and check if the window is still within the bounds of that GraphicsConfiguration before changing adding the scene. Or you could remove/hide the 1. window, create a new one and use that for the rest. (The exception is thrown when you add the canvas to the window, right ? use window.getGraphicsConfiguration() to create the canvas and create it just before making it visible. I'm not sure if this works, as i'm not sure if getGraphicsConfiguration() returns the actuel config or just the config it was created on) > How can I best handle this? Right now I catch the exception and show an > error message imploring the user to try again without moving the window but > it would preferable to handle the situation seamlessly by changing the > GraphicsDevice on the fly (I don't think I can do that). You can move the window back to the screen it was created on, but i don't think the users will like it... cu =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".