check java.awt.dnd.DropTarget and other classes from that package and also the tutorial from sun
http://java.sun.com/docs/books/tutorial/uiswing/dnd/index.html On Thu, Jul 2, 2009 at 5:16 AM, swapan<[email protected]> wrote: > > Hi All, > > Currently, i am working on Java project where I have a Java Frame and > I want to DRAG and DROP a "text file's Location" (say Text File Icon > on Desktop) onto Frame's Text Field. > > Eg: Suppose there is one file A.txt on Desktop. The Path Location will > be > "C:\Documents and Settings\UserName\Desktop\A.txt". > > So, required is that when i do Drag and Drop of the Desktop Icon > of > A.txt onto Frame's TextField, it should end up having the > Location Path of it i.e; > "C:\Documents and Settings\UserName\Desktop\A.txt" . > > With my little Experience on Java, i am not able to figure out the > Correct Listeners and import Class. At the same time, i am aware of > the DND (Drag and Drop) Import class, but that that works only under > same JVM context. Correct me if i am wrong. > > But here, the context establishment should be made b/w: > > 1. Underlying OS (Eg: Windows), and > 2. JVM (The Frame that i have talked in above discussion) > > > Thanks for any inputs on achieving this in advance. > > Regards, > Swapan > > > > -- http://mapsdev.blogspot.com/ Marcelo Takeshi Fukushima --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
