I'm not sure.
I didn't know there was a problem.  Perhaps it is a focus problem.
Here is what I did.
In the applet "init"
        .....
        canvas.addKeyListener( this);
        canvas.addMouseListener( this);
        canvas.addMouseMotionListener( this);
        canvas.requestFocus();
            // Build initial scene graph
        createSceneGraph( new SimpleUniverse( canvas));
        ......
And on mouse enter
        public void mouseEntered( MouseEvent e) { canvas.requestFocus();}

Also, the major class created in createSceneGraph extends behavior and
does the following

            // Java3D Behavior: init
    public void initialize() {
         timeStep = new WakeupOnElapsedTime( (int)(deltaT*1000));
         wakeupOn( timeStep);
    }
        // Java3D Behavior: this event happens every time step
    public void processStimulus( java.util.Enumeration criteria) {
        camera.step( deltaT);                       // camera kinematics
        if ( model != null) model.step( deltaT);    // model dynamics
        wakeupOn( timeStep);
    }

Hope that helps,
Mike

----- Original Message -----
From: "Greg Huang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 17, 2002 6:03 PM
Subject: Re: [JAVA3D] J3D applet testers needed


> Hi
> They work correctly , and let me impressive.
> By the way, Can I ask a question?
> How did you solve the problem of canvas3d repaint  incorrectly?
> I find that if the applet window was occupied by other windows,  it would
> repaint immediately when mouse moved back the IE window.
> How did you do it ?
>
> Thanks very much
>
> Greg
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to