Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.awt.dnd

 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A program can't get any drag and drop events that come from the launching process itself, no. It doesn't work this way.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
Did not want to wonder about it for a long time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic