Use of progress bar, splash screen and other threaded stuff

Hi,

In my main window i have a menu bar, the canvas for jogl, and a progress bar
when a compute something big i want my progress bar to move

but the bar only starts moving when the computation is over and stops directly

i also tried to use a splash screen instead, and it the same, the splash screen appears at the beginning of the computation, but its containt is only drawn once the compuation is over

I know this must be a threading problem, but i don’t see how to work around. Is it related to the light/heavy weight “problem” ?

does anyone have a example of code ?

The source code for the JCanyon demo contains a progress bar drawn with OpenGL.