Drag and drop to desktop icon on Windows

My Java application is bundled in a JAR (with a MAIN). On Windows (XP, Server 03+ and Windows 7) I would like to have it so the user can drag and drop files and/or folders onto the JAR's icon on the desktop and have it launch its MAIN passing in a list of java.io.File objects representing the dropped item(s).
Is this possible? Do I need to turn my JAR into an EXE and if so can someone recommend an EXE generator tool that supports this drag-n-drop functionality?
TIA,
-Noah

NBW-Java wrote:
My Java application is bundled in a JAR (with a MAIN). On Windows (XP, Server 03+ and Windows 7) I would like to have it so the user can drag and drop files and/or folders onto the JAR's icon on the desktop and have it launch its MAIN passing in a list of java.io.File objects representing the dropped item(s).
Is this possible? Do I need to turn my JAR into an EXE and if so can someone recommend an EXE generator tool that supports this drag-n-drop functionality?Noah,
I've not ever seen another application that would do that without having the application already running, once it is running then you should be able to do a drag and drop.

Similar Messages

  • Drag and drop attachments between two email windows

    Hi together,
    my problem is easy. i cannot drag and drop attachements between two email windows using Apple Mail. On my old MBAir it was no problem. I do not know which configuration i have to change. To drag and drop to the desktob is no problem. Now i have to drop an attachement on the desktop to attach it to a new mail. This cannot be the solution :-)  Please help me.Thank you.
    Noobie :-)

    There is no configuration for it. It should work.
    Can you try it in a different user account. If it works in a different account, then it is likely something in your current user account that is messed up. If it doesn't work in another user account, then it is likely something with Mail, itself. 
    You could try downloading and installing the 10.6.7 combo update. That may repair what is wrong.

  • PDF made with distiller vs drag and drop on Acrobat icon.

    How is the file handled differently if I us the stand alone distiller verses just dragging and dropping, say an .eps to the Adobe Acrobat Pro program Icon. I have this question because I have found using distiller on occasion will not give me a correct font as apposed to drag and drop on Acrobat Icon which will keep the font correct. I'm using Acrobat Pro on a 2 X 2.66 Dual Core Intel Xeon Mac and OSX 10.5.8.

    This is exactly how I understood this to work as well. …and yet the resulting PDF is not the same in the tests I have done.
    But, I have taken the same exact .eps file and draged it into the distiller window and had certin fonts not show correctly in the resulting PDF. When I take this same exace .eps and drag it to the Acrobat icon it creates a PDF file with all fonts showing correctly. I was looking for some insite into why this was the case. 

  • Drag and Drop to Desktop Export

    In version 1.5, Aperture was capable of a 'drag and drop to desktop' JPEG export feature. This was very useful as it dramatically reduced the size of the file and maintained the fidelity of the image. However, Aperture 2.0 reduces the file size and dimensions. I would like the original dimensions but a reduced file size without using the Export feature. Any Suggestions?

    Hi,
    I have a similar question. I've noticed, when I drag a photo straight out of Aperture 2 to the Desktop, the file on the desktop takes on some interesting properties. For example, the original photo in Aperture is 4000 pixels in width, but if I drag it to the desktop, the copy it makes is 2000 pixels.
    Also, the dragged/copied version automatically gets an Adobe RGB (1998) ColorSync profile. I don't want it getting/using this profile, I want it using sRGB.
    There doesn't seem to be any control at all over the size and ColorSync profile of the dragged/copied image.

  • Which Listener I should use if I drag and Drop an image/icon into a JPanel?

    Dar Friends:
    Happy new year.
    I try to drag and Drop an image/icon into a JPanel, and hope I can immediately detect it after DND,
    Which Listener I should use in this JPanel if I drag and Drop an image/icon into a JPanel??
    Thanks

    Thank camickr .
    I can dnd an image into a JPanel called JPanelOld already, I hope to use another JPanel or JTree to listen to any Dropped Image in JPanelOld later on so I can take some action in another JPanel or JTree.
    so what kind of Listener I should use for my purpose??
    where to add this Listeners??
    Happy New Year.

  • I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    Question
    I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    To be more precise, you can setup a JComponent or JPanel on top of your JavaFX nodes that has a TransferHandler that can convert the (AWT/Swing) images dragged to the app to JavaFX image and then insert it into the underlying node.
    As for the file chooser itselft: ListView and the JavaFX composer can allow you to create one quite easily. TreeView can aslso be used to a lesser extend (still a big buggy). For both of these, there are small bugs in the Cell API that may (or may not) prevent from displaying a proper thumbnail in the cells.
    You can also use a regular JFileChooser if you do not mind the dialog box having a different LnF from the rest of your application.

  • Drag-and-drop to desktop brings up Finder window - DO NOT WANT

    For some reason, every time I drag-and-drop an image from my browser onto my desktop, it now brings up a Finder window. Is there any way to stop this?
    Thanks.

    I'm also looking for same, have you found any solutions elsewhere?

  • Why can't Mac users, who have multiple devices, have device icons for drag and drop, on desktop rather than iCloud, iTunes, etc. ?

    I want drag and drop in the form of icons on my iMac, from all my other Apple devices. I don't want to have to go through iCloud, iTunes and DropBox.

    What are you other apple devices?
    For an all Mac OS X set, you could write an applescript to perform the task.
    Robert

  • How do i download video from iphone 4 to a Mac Compatible Seagate GoFlex external hard drive, drag and drop loads an icon without any data?

    I took some video over christmas using my iphone 4 and ever since i have been trying to back up these videos for safe keeping.  When i tried to back up to my computer's c drive only the smallest file would load, the other 2 the icon would appear but no data was present in properties.  so i then tried to drag and drop to my seagate 3tb GoFlex hard drive and i would also get icons but no data.  It seems to me this would be a simple process anyone know the answer? I have windows xp and can seem to move everything else around without any problem just seems to be video as the problem?

    William G 42 wrote:
    , I just can't really do anything with the content going either way.
    Make sure the EHD is Formatted Mac OS Extended (journaled
    Format, Erase, or Reformat a drive
    In iPhoto, Select All the Photos you want to move... Then Goto... > File > Export >
    Choose the settings as seen here
    Click Export and select your External Drive
    Best to create a Folder to put them in... and away you go...
    More Help available from iPhoto Toolbar Help Menu

  • Can't drag and drop on desktop and I've tried all suggestions from previous threads

    Yesterday I found that I can't drag and drop any files on my desktop. I get the white circle with a line through it when I try to drag anything. I can drag off of my desktop to my HD and to the trash but I can't drag anything back.
    I've read all of the previous threads about it and have tried all of the poetntail fixes including:
    Creating a new user account and switching back and forth
    Sleep / Wake
    Relaunching Finder
    Checking the Dragging option in Universal Access
    Checking all of my settings in prefrences
    (I don't have Air Display, Airparrot or any of the other listed problematic 3rd party programs)
    I even reinstalled Lion and the problem still exists
    Anybody have any other pointers, or should I head into the Genius Bar?

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the Recovery screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Drag-and-drop to desktop

    In IE, one can select the URL and drag it to the Windows desktop or anywhere else.
    I want to implement the same functionality for my app: drag and drop a selection in the app to the desktop.
    What flavors do I give the Transferable so that happens?
    I wrote a test app to see what IE sends: two text/plain flavors. Almost obviously, I'm afraid to say, when I do the same from my Java app nothing happens.
    And I don't seem to be able to find ANY documentation on the subject ...

    I'm also looking for same, have you found any solutions elsewhere?

  • How to drag and drop to desktop

    Hi experts,
    please see the following scenario:
    - We created a report using xCelsius that is technically a Flash file (SWF)
    - We included this into an iView
    Is there a possibility to drag and drop it to the Windows Desktop (e.g. Pressing the left mouse button and release it on the Desktop as it works for simple images)?
    Best Regards and thanks for your help.
    Thomas

    Hi,
    You cannot drag n drop flash to Windows desktop.
    Regards,
    Praveen Gudapati

  • Drag and Drop no longer working in Windows 8

    Running ID6 on new computer running Windows 8.  I'm running as Administrator mode, but I can no longer drag images into designs.  I was able to in Windows 7. 

    Update on the problem. 
    The problem was that you cannot drag and drop when in Administrator mode.  Indesign was crashing if I did not open in administrator mode.  The reason why Indesign was crashing has something to do with licensing of the computer and software...  This is a new computer and the c drive is a solid state chip. To conserve c drive space, we setup c:temp to be on a separate drive.  That's why Indesign would not open normally.  You must have your c:temp on your user account to be directed to c:temp. 
    control pane
    system
    Advanced system settings
    Environment Variables
    Changes must be made in four places.  Dig around here, you'll find them.

  • In mail drag and drop to desktop does not work with big pictures in 10.9

    My drag and drop function in apple mail program does not working anymore after upgrade to macos 10.9
    Big picture in my mail does not want to drag to the desktop anymore!
    Imac 2.93 Ghz core i7

    Hello,
    Please give your SPS (Java) and Patch level of BIBASES & BIWEBAPP.
    Regards, Karol
    SAP NetWeaver BI, Development

  • Drag-and-drop from desktop to Flex app

    I am working on a RIA using flex and am trying to implement drag and drop of different types of files into a Flex UI, I know this is possible using AIR but we are trying to do it through Flex in a browser. Trying out options with javascript and active x controls but no success till now.
    I am seeking pointers to any sites that implemented this or any direction on cracking this one.
    Thanks,
    Rakesh Patwari

    Thank you for the quick response Jeffry,
    Yes, I am facing that issue whichever way we are going in! How about using Javascript/HTML as iframe within flex to get this done?
    Just thinking about it...
    Thanks again,
    Rakesh Patwari

Maybe you are looking for

  • IPad dock connector to VGA - opinions ?

    I'm considering the purchase of a dock-to-vga adapter for my iPad. I have Netflix streaming capability and would like to view films on my Toshiba 42" TV. I've read numerous posts were persons who bought were disappointed in the output capabilities. I

  • Recommendations for new hard drive

    It looks like I will have to replace my hard drive--If I want to get one myself does anyone know of a good brand--I have a Gateway laptop that is 1 1/2 yrs old and it has 120 gb-- Thanks for the advice-- 

  • RFBIBL00  and LSMW

    Hello abapers, I have a problem. My upload file is structured therefore: |Header data|Item1 data|Item2 data How I can make to divide the record, in LSMW, so as to register FI document? Thank. Bye.

  • Description of RSPO_OPEN/WRITE/CLOSE_SPOOLREQUEST

    Good day! Can anyone please provide me a brief description of the following function modules: RSPO_OPEN_SPOOLREQUEST RSPO_WRITE_SPOOLREQUEST RSPO_CLOSE_SPOOLREQUEST My main questions are about the WRITE fm.  How will the WRITE fm be used if the table

  • Ocsd.log and crsd.log

    I am newbie to rac, i am see the following below message in ocsd.log and crsd.log in both nodes of 10.2.0.3 windows 2003, is it any sympton to failure or error? And both instances of are working fine. And one more thing lots of prefix CDMP_ files are