So I have a component that renders very slowly. The problem is that I can only render inside the event handling thready, which shouldn't be freezed.
Long ago in pascal/assembly I used backbuffer and page flipping. I've read that Java supports double buffering, but no info about thread safety.
So the question is, how can I render in a worker thread, and then show it in the event handling one?