Results 1 to 2 of 2
  1. #1

    Paul Heitkemper's Avatar
    Member Since
    Feb 20, 2007
    Java drag and drop woes
    I'm trying to get over some specific hurdles in a java swing program.

    As a proof-of-concept, I made a jar that accepts files dropped onto the main window. Pretty simple, really. Just implement the DnD interface and you end up with a list of pathnames. Simple.

    However, what I want to do is allow the user to drop the files onto the icon of my program and launch the program. Similar to dropping a file onto a printer icon and voila, it starts printing.

    I can do this with windows by making a shortcut to "javaw.exe -jar DropTarget.jar", and the file names come in as command line parameters.- the args[] variable in main(String args[]).

    This will not be a file type specific to my program- the user might drop in pdfs, text files, various binary files, etc.

    Any thoughts?

  2. #2

    Member Since
    Jun 03, 2009
    Same problem
    I am trying to do the same thing. i Noticed that you posted this a while ago and was wondering if you ever found a solution to it.if you did can you please share! thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drag and drop
    By quackagator in forum OS X - Operating System
    Replies: 2
    Last Post: 04-07-2014, 11:55 AM
  2. Help me with drag and drop
    By ceejay in forum Switcher Hangout
    Replies: 27
    Last Post: 09-04-2010, 11:18 PM
  3. Trackpad drag and drop woes
    By in forum Switcher Hangout
    Replies: 20
    Last Post: 05-15-2010, 04:56 PM
  4. Drag and drop
    By Åmund in forum Apple Notebooks
    Replies: 3
    Last Post: 03-29-2010, 04:36 PM
  5. Drag and Drop
    By brkpsu in forum Movies and Video
    Replies: 0
    Last Post: 02-25-2006, 04:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts