aspose file tools*
The moose likes Java in General and the fly likes java.awt.dnd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.awt.dnd" Watch "java.awt.dnd" New topic
Author

java.awt.dnd

Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.

Okay, heard that before - or some semblance of it.

Now, as of Noon today, I got about 300 lines into my main() during my first test run of about 2,000 lines of code - failed on a known issue.

But one concepting decision I have not made is (how to accomplish) the dumping (dropping) of feeds onto the 'Program'. Using the shell, the dropping of a selection from a list control onto a shortcut on the desktop
***->could<-***
initiate a paging in of the executable and initation of some action.

This would mean entry somewhere other than main() - or require complex logic (prone to unforseen failure modes) at the entry point main() to determine whether a drag and drop operation had launched the executable or the program had been invoked in the conventional manner.

Not likely.

Rather than lose traction trying to figure this out, does the program have to be already paged in and in process to receive a Drag and Drop event ?

What is the usual form of coding for dnd ?

My current approach, the first approach I thought of, make a sub-directory and require, by program definition, operators load the folder with whatever files they want the program to do something with.

Smart, no ?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

A program can't get any drag and drop events that come from the launching process itself, no. It doesn't work this way.


[Jess in Action][AskingGoodQuestions]
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
Thank you.
Did not want to wonder about it for a long time.
 
 
subject: java.awt.dnd