drag & drop

I'm trying to make a drag&drop with a JLabel and a JPanel. I want to drag the label on the panel and when the mouse is released a clone of the original label is created in the position of the drop. I can't find any simple tutorial on the net and all the examples do a lot more and are complicated.

[310 byte] By [Babicaa] at [2007-11-27 10:50:02]
# 1

So what have you got so far?

bryanoa at 2007-7-29 11:22:53 > top of Java-index,Java Essentials,New To Java...
# 2

Here is what you are looking for.

http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/LabelDnDProject/src/dnd/LabelDnD.java

which come from

http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html

kris.richardsa at 2007-7-29 11:22:53 > top of Java-index,Java Essentials,New To Java...