I am creating a Drag and Drog client using java, but keep on running in with the following exception.
java.awt.dnd.InvalidDnDOperationException: No drop current
This is the code which generates the error
list = (List<File>) (info.getTransferable().getTransferData(DataFlavor.javaFileListFlavor));
And the info object is declared as follows
TransferHandler.TransferSupport info;
Any suggestions on what I can do to solve it.