Is it safe to synchronize java.awt.Container.paint(Graphics g)?
Posted
by Alison G
on Stack Overflow
See other posts from Stack Overflow
or by Alison G
Published on 2010-05-18T11:23:58Z
Indexed on
2010/05/18
11:30 UTC
Read the original article
Hit count: 227
I'm using some 3rd party AWT components in a desktop application. The component's layout is changed within the paint()
method, and this causes some very strange behaviour. This appears to be fixed by adding the synchronized
keyword to the paint() method, but is this a safe thing to do?
© Stack Overflow or respective owner