Is it safe to synchronize java.awt.Container.paint(Graphics g)?
- by Alison G
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?