• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

java.awt.dnd

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
Did not want to wonder about it for a long time.
 
Happily living in the valley of the dried frogs with a few tiny ads.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic