Drag and Drop question
I am implementing a drag and drop functionality. The user should be able to drag a node from the tree ( which represents tree with servers and cameras) and drop it in a ImagePanel(extends JPanel). The ImagePanel should show an image from the camera.
I implemented a TreeTransferHandler, set it as a TransferHandler to my tree and in importData i handle the showing of the image in ImagePanel. Then in the main GUI class i set the ImagePanel as a dropTarget and i am not sure whether this is right. And if it is, i have to implement a DropTargetListener() and its method drop() and i am wondering why do i have to do this, when it is already specified in dataImport?