Drag and drop

Aack, I really did not want to post this since it seems like such a simple thing to do, but I’m already frustrated enough with Nifty.
I’ve read through the tutorials, but how do I do a draggable icon?
I’ve got this:
control id=“drag” name=“draggable” backgroundColor="#6f04" width=“64px” height=“64px” valign=“top” childLayout=“absolute”
image id=“image” filename=“Interface/slot.png”
height=“64px” width=“64px” >
/image
/control
I had to remove some of the "<>"s since the code kept disappearing with them. The image is supposed to be able to be dragged, but it doesn’t. Am I supposed to write something in Java too?

Had to add this (didn’t see it anywhere except in the source itself):
[java]
useControls filename=“nifty-default-controls.xml” /
[/java]

For XML, you can use xml-tags (square brackets) in the forum. :slight_smile:

[xml][/xml]