: : SO if you want a custom cursor you can create a curor with the
: : toolkit class
: :
: : java.awt.Toolkit.getDeafaultToolkit().createCustomCursor(Image
cursor,Point
hotSpot,String
name);
: :
: :
: :
cursor -->
the image to display when the cursor is activated
: :
: :
hotSpot -->
the x and y of the large curors hot spot;
: : the hotspot values must be less than the dimension returned by getBestCursorSize
: :
: :
naem -->
a localized description of the cursor, for JAVA Accessibility use
: :
:
:
: doesnt work, thats why i ask anyone to implement that method into an easy applet. i thank you for all you did (you are the firt one who ever replie to me) tkx
:
ImageIcon icon = new ImageIcon("[FOLDER]/[FILENAME].gif");
Image a = icon.getImage();
final java.awt.Cursor myCursor =
java.awt.Toolkit.getDefaultToolkit().createCustomCursor(a,new java.awt.Point(8,8),"test");
setCursor(myCursor);
This should work also with a applet!?
The only problem which you should have is to recive or to bundle the image into the applet....so the server should send the applet the picture or you have to bundle the image in the applet then the [FOLDER]/[FILE].* paraemter looks different