This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 41089
    
  44
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.


Ping & DNS - my free Android networking tools app
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: 41089
    
  44
The HowCanAnAppletReadFilesOnTheLocalFileSystem page explains how to do that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drag and drop images on applet from local file system
 
Similar Threads
getImage() open image
DnD from file system into JTree
Drag and dropping across applets
Drag and Drop folder?
Windows Explorer in WebPage