DropTargetListener [Solved]

Hi, I don´t get the method getTransferData([…]),
If I drop an String in the area, I can cast it to an String.
If I drop an image “test.png” in the area, I can´t cast the object to an image.
It´s weird because the

syso.(getTransferData([..])) -> [path of the file]

At the moment I usw the Filereader with

getTransferData([..]).toString

String:

isDataFlavorSupported(DataFlavor.stringFlavor)

returns true,

png-file:
In addition

isDataFlavorSupported(DataFlavor.imageFlavor)

returns false,

I think I misunderstood the method, could someone please explain it :slight_smile:
but it would be stupid, if the file is already read and I just don´t get it ;D

EDIT:
Got it, I have to use isDataFlavorSupported(DataFlavor.javaFileListFlavor)

best regs. phibedy