Maik,

The Timer which you are using is a java.util.Timer (not a javax.swing.Timer), 
so your rendering function is not being called on the Event Dispatch Thread. 
This could be why you are not always getting the GraphicsConfiguration / 
GraphicsDevice which you expect (as getGraphicsConfiguration() must be called 
from the EDT).

In my application, I keep the current GraphicsConfiguration as a volatile 
instance variable, and update it when the form moves (in the same way as 
Dmitri's test application). My rendering loop (which runs in its own thread) 
then reads this value.

Hope this helps

Mark
[Message sent by forum member 'markgrantham' (markgrantham)]

http://forums.java.net/jive/thread.jspa?messageID=292033

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to