This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Applets and the fly likes drag and drop images on applet from local file system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "drag and drop images on applet from local file system" Watch "drag and drop images on applet from local file system" New topic
Author

drag and drop images on applet from local file system

Srikar Sarma
Greenhorn

Joined: Jan 25, 2007
Posts: 2
Hi all,

I have a functionality in my web page where i need to drag and drop an image from my file system on to an applet and my web page should receive the file path of the dropped image.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
Welcome to JavaRanch.

The Swing toolkit includes drag-n-drop, which can do that. The applet will need to be signed for this to work.
Srikar Sarma
Greenhorn

Joined: Jan 25, 2007
Posts: 2
Hi,

Thanks for the sample codes link. How can I make the applets signed?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
The HowCanAnAppletReadFilesOnTheLocalFileSystem page explains how to do that.
 
 
subject: drag and drop images on applet from local file system