Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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: 41124
    
  45
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: 41124
    
  45
The HowCanAnAppletReadFilesOnTheLocalFileSystem page explains how to do that.
 
It is sorta covered in the JavaRanch Style Guide.
 
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