Hi ,
You must display an image with method getCodeBase() for the security applet
and not Toolkit.getDefaultToolkit();
ES: Duke=getImage(getCodeBase(),"DukeWave.gif");
Gianni

----- Original Message -----
From: "thanh nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 5:25 PM
Subject: [JAVA3D] creating cursor in java 3d applet


> help please,
> The following code in a java3d applet causes
java.security.AccessControlException:
>
> //Create  cursors
>         Toolkit tk      =       Toolkit.getDefaultToolkit();
>         Image imgWalk   =       tk.getImage("images/CursorWalk.gif");
>         Image imgTilt   =       tk.getImage("images/CursorTilt.gif");
>         Image imgPan    =       tk.getImage("images/CursorRotate.gif");
>         Image imgClick  =       tk.getImage("images/CursorClick.gif");
>         Image imgHelp   =       tk.getImage("images/CursorHelp.gif");
>         public Cursor  cursorWalk       =
tk.createCustomCursor(imgWalk, new Point(15,15),"cursorWalk");
>         public Cursor  cursorTilt       =
tk.createCustomCursor(imgTilt, new Point(15,15), "cursorTilt");
>         public Cursor  cursorPan        =
tk.createCustomCursor(imgPan, new Point(15,15), "cursorPan");
>         public Cursor  cursorClick      =
tk.createCustomCursor(imgClick, new Point(15,15),"cursorClick");
>         public Cursor  cursorHelp       =
tk.createCustomCursor(imgHelp, new Point(15,15),"cursorHelp");
>
>
> can anyone suggest another way ?
> thanks
> _-Thanh
>
>
>
> ________________________________________________________________________
> Skaff deg gratis epost-adresse og hjemmeside p� http://home.no/ du ogs�!
>
>
===========================================================================
> 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