Hi,
I know how to use Drag&Drop but I have two problems:
1. I would like to have my icon displayed right next to the system's default cursor during dnd operation instead of displaying my icon only. How can I achieve this?
2. when I use my own image as cursor during dnd operation, the size of the cursor is incorrect. It's supposed to have 24x24 pixels but it gets displayed in a different size. The ImageIcon still has 24x24 pixels, but the cursor is wrong.
Thanks a lot!
Regards,
Ren�
ImageIcon copyIcon = new ImageIcon("c:\\tmp\\drag_copy.gif");
System.err.println(copyIcon.getIconWidth() + "; " + copyIcon.getIconHeight());
copyCursor = Toolkit.getDefaultToolkit().createCustomCursor(
copyIcon.getImage(), new java.awt.Point(0, 0), "I30COPY");
...
e.startDrag(copyCursor, new StringSelection("DRAGITEM"), this);