File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Drag drop issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Drag drop issue" Watch "Drag drop issue" New topic
Author

Drag drop issue

Dan Cooper
Greenhorn

Joined: Dec 06, 2009
Posts: 1
Hi,

I'm just starting work on a Java applet (I'm new to Java) and I have an issue with drag/drop from OSX Finder, I am using the following code to process files dropped onto the applet from the Finder:



For some reason, the first time I drop files onto the applet, the 'DataFlavor.javaFileListFlavor' is not available but if I drop the same files a second time it is. What am I doing wrong?

Thanks!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41104
    
  45
Welcome to JavaRanch.

In the future, please make sure to post code that compiles. It took me several minutes to hunt down all the missing import statements.

I can't reproduce the problem. Dropping one or more files on the applet on OS X works fine for me.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Drag drop issue
 
Similar Threads
problem with Drag and Drop
JButton slow response time
Does Jtree support Drag and Drop?
How to display ghost image of JTable multiple row selection
Problem with drag and drop location