Hi!
I built a JFrame with a JProgress bar to display “loading” advices while my Java3D application is building the SceneGraph.
Unfortunately I got no JFrame update til Java3D finishes its computations. The JFrame appears, but its content is not updated.
I tested the JFrame with other no Java3D applications and it worked fine.
Anyone can help?
Of course I tried calling repaint()…
Thanx
It might be the j3d thread taking over.
Try using setJ3DThreadPriority(Thread.MIN_PRIORITY). I think its on Canvas3D. Should lower the priority and let the frame updated.
Kev
Unfortunately that doesn’t work! But I solved the problem with a little trick…
I used a heavyweight AWT Frame instead of the Swing JFrame, and I filled it with 2 AWT label. I used a lot of “*****…” to simulate a JProgressBar. I increment their number during loading, to make the Frame look dinamic.
This “Heavy Loading Frame” works good. But there’s something strange… I also tried to realize a JProgressBar with an AWT Canvas (heavyweight too).
In that case I got no update again adI can’t understand why…
It works with Labels…Why not with Canvas (or Graphics update, in general)???