You'll have to write a class extending TransferHandler, overwrite the importData method and register it with your Application. but this will only work if you know which mime type the Attachment has.
Another approach wich gives you more control but is not as easy to implement is described in: http://www.javaworld.com/jw-03-1999/jw-03-dragndrop.html