[josm-dev] Painting

Petr Nejedlý petr at nejedli.cz
Tue Mar 9 21:21:05 GMT 2010


Sebastian Klein wrote:
> I was wondering: Is it save to paint to the Graphics of some component 
> from a random thread at a random time?
>   
No, it is not safe, but that's not what you'd be doing.
The painting will proceed into a BufferedImage, which will then be painted
in the event thread using the component's Graphics.

--
Nenik





More information about the josm-dev mailing list