In a drop event (DropTargetDropEvent) in Java Swing which files,emails and others can be drop into a drop target, I would like to know if the drop object is an email from outlook. In the code below both file and email can enter the "if" condition.
public void drop(java.awt.dnd.DropTargetDropEvent dropEvt )
{
Transferable transferable = dropEvt.getTransferable();
if(transferable.isDataFlavorSupported(DataFlavor.javaFileListFlavor))
{
//Dropped files or email from Outlook enters this condition
}
}
Thanks!