[EMAIL PROTECTED] wrote:
Dmitri,

I have my rendering code in a separate thread for performance, so I cache the 
GraphicsConfiguration so that it can access it in a thread safe way.

Is there a better way of doing this? Or can I just get the 
GraphicsConfiguration from the component from a thread other than the EDT?

  Yes. Never cache graphics configuration. It may change at any time,
  even without component moving. It is safe to call
  Component.getGraphicsConfiguration() from any thread (AWT is thread-safe).

  Thanks,
    Dmitri



Thanks

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

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

===========================================================================
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".

===========================================================================
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