How to invalidate a scene in java3d?

i want to draw different objects each time!
how to do that?

If you make a change to the scene graph, the screen will automatically be refreshed.

To trigger the change, you use Behaviors, which are objects in the graph that get called when certain events happen: like a certain amount of time passing, or a change in the graph.

What exactly do you mean by “invalidate”?

“invalidate” means “refresh”
maybe i want to change a scene according to the item you selected from a combobox or your click on a botton
and so on.

hi,morbo:
Could you tell me how to do this:when i click a button in a applet,then the scene change.Such as:in the beginning it’s a cube, after the click,it’s a cone.

To do this quickly you could just detach the branch group associated with the cube and attach the branchgroup that contains the cone. As most on this site will suggest, you will want to use a behavior to detect that someone clicked on the object but ofcourse you don’t have to.