Is it possible to get a reference to Swing "no Drag "Cursor ,since it is OS Specific, or maybe override it
+2
A:
I would look into java.awt.Toolkit::createCustomCursor if you want a cursor that is not predefined in java.awt.Cursor
public Cursor createCustomCursor(Image cursor,
Point hotSpot,
String name);
From the Java 6 Documentation:
Creates a new custom cursor object. If the image to display is invalid, the cursor will be hidden (made completely transparent), and the hotspot will be set to (0, 0).
Note that multi-frame images are invalid and may cause this method to hang.
zipcodeman
2010-03-07 22:55:45
+3
A:
I think you might be looking for the DragSource class which has bunch of predefined cursors.
camickr
2010-03-07 23:32:42
Woot! http://java.sun.com/javase/6/docs/api/java/awt/dnd/DragSource.html
trashgod
2010-03-07 23:38:11
Thanks for the Tip.
pavan
2010-03-09 14:50:04