Canvas3D update( ) control, and repaint( ) flickering
Two questions at once:
1. I have a MouseListener attached to the Canvas3D, and every time a mouse event happens I want to update the canvas. But it flickers extremely. What's the problem, and how can I avoid it?
2. And is there a way to fully control the update or repaint operations of the Canvas3D? At the moment it seems to update itself at will. But I regularly have to perform some huge scene changes and I don't want it to repaint until the changes are completely done. Right now, the scene elements that are not changed are perfectly fine, but the elements that are changed begin to flicker. Probably beause I have to detach and reattach BranchGroups, and the canvas probably also repaints while these BranchGroups are detached. I want to avoid that.
Thanks in advance,