Hello.

--- Mona Wong <[EMAIL PROTECTED]> wrote:
> Hi:
>
>         I'd like to turn my mouse cursor to a hand
> when the user moves the mouse
> into the canvas.  How can this be done?  I checked
> the FAQ and didn't see
> anything on this topic.
>
> Thanks,
>
> Mona
>

     Try passing a MouseListener or MouseAdapter to
the Canvas3D's addMouseListener() method.  This custom
class should have the following method overriden like
so:

public void mouseEntered(MouseEvent e)
{
    ...

canvas3D.setCursor(toolkit.createCustomCursor(handImage,
point, "Hand cursor"));
    ...
}

     where toolkit and point are instances of
java.awt.Toolkit and java.awt.Point, respectively.

                              HTH,
                              Cromwell


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

===========================================================================
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