Native file drag and drop

I was wondering if anyone has an example piece of code where a file is dragged from windows explorer onto a java app where the file is then used inside java? The documentation says it's possible but I don't see how at this point.
thanks

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%2Bjni+%2B%22windows+explorer%22

Similar Messages

  • File Drag and Drop in Portfolio

    Is there any way to enable scrolling when dragging and dropping files into a folder that was created inside a Portfolio in the List View?  When converting multiple files from folders, users want to maintain the organization of the files in the same folder hierarchy within a Porfolio.  If dozens of files are converted, you cannot select a few files and drag them into a folder that is not in the view.  Converting the folders individually is inefficient.

    Hello,
    I think you posted this question in the wrong forum: this is one of the Captivate forums and I do not see a relation to it, but can be wrong.
    Lilybiri

  • File drag and drop with Labview 7 and Mac OS X Tiger?

    Hi folks,
    I've lost the ability to drag and drop files into front panel file path
    controls, since I upgraded to a new OS X version. Specifically:
    What used to work:
        - Labview 7.0
        - Mac OS X 10.3.x
        - drag file icon from desktop and drop onto file path control (file path control shows path to dropped file)
    New action taken:
        - lost old Mac (Titanium) with OS X 10.3.x
        - bought new Mac (Aluminum) with OS X 10.4
        - installed OS X 10.4 "over" 10.3 disk (did not build from scratch)
    What happens now (three days after birth of new system):
        - all my past Labview apps still seem to run
        - but, if I drag a file from the desktop and drop it onto the file path control I see:
              - file path control
    "outlines" indicating that it understands the intended drag and drop
    action
              - when the file is dropped the file path control does not report the new value
              - And the file path control still has it's old value
    Anyone else seeing this? Am I missing something obvious (Labview or OS X preferences)?
    Thanks in advance,
    RMP

    Hello,
    I don't know how seriously Apple sees the problem, but it doesn't seem plausible that they would rev the OS on account of just this problem with LabVIEW, particularly since we worked around it for the latest version of LabVIEW.  I understand you are working with another engineer at NI via direct email regarding this issue, and that is going to be a better forum for discussing the possibility of obtaining the Apple bug report number.  In the event R&D is willing to reveal it, I presume they will be more comfortable doing so on a case by case basis, as opposed to posting it on the external discussion forum.
    Thank you, and sorry for the inconvenience you have encountered due to this issue.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • File drag and drop from java app to file system - Linux problem

    Hi all,
    I am developing an application for files archiving, with a graphical user interface. The files are showed in a JList, and I implemented drag and drop feature for it. It works well for Windows platform, but not at all for Linux (Ubuntu).
    Under Linux, file export with DND from the archive to file system does not work.
    To extract a file with DND, we can't know the target destination folder, so I create a temp file (file extracted from the archive is wrote to OS tmp dir), and the system is expected to handle the DND action.
    The temp file is correctly created (original data is well retrieved), but Ubuntu does not want to copy or move it via DND.
    I get a system dialog window (while extracting file "test1") :
    Error while moving
    There was an error getting information about "[tmp/60lp1t7egl/test1]".
    Show more details > Operation not supported
    (Cancel, Skip all, Skip, Retry)
    Can it be a rights problem ?
    Any idea ?
    Regards,
    Biibox

    Until the 3rd party image editor developers provide us with the Photos extensions for using their app from within Photo we'll have to export to the Desktop, edit there in the apps and either import the new file into Photos or use it elsewhere.

  • File Drag and Drop

    The company I am working for is trying to add drag and drop
    support to a web application. Is it possible to drag and drop files
    on to Flash control?

    adobe air

  • Folder/file drag and drop function not working

    Just today, I can no longer drag and drop files on to my desktop or place them into the trash. I am using OS 10.7.5.
    Thanks for any suggestions!

    The way I see it, there are two ways to proceed:
    a) asume your Mac is fundamentally messed up:
    Restart and hold Command-R to invoke recovery mode.
    Choose Disk Utility.
    Select your Boot drive and ( Repair Disk ).
    b) debug the raw symptoms:
    How are you attempting to do this?
    what happens when you try this, and how does it fall short of your expectations?

  • Gnome-shell and xfburn - drag-and-drop no longer supported

    Can someone using gnome-shell else try this as a sanity check:  try to drag-and-drop an mp3 file into xfburn in "Audio CD" mode.  For me, mp3 files are ignored but wav files drag-and-drop in just fine.  I can add mp3 files to the compilation but only if I do so through the xfburn GUI.

    I get the same behavior here.

  • Drag and drop Files to native disk lazily

    I need help on how to copy, through DnD, a file/attachment from an email application (http://columba.sf.net) to the native operating system. Theres no problem to drag and drop files that already resides on the file system, this Ive done without any problem.
    The problem is that the attachment lies within the email, and it needs to be extracted before it can be copied to the correct location. For performance reasons I dont want to extract all attachments to the disk when the user opens an email with attachments. Neither do I want to extract the attachment during the user's DnD operation. I would like to make the copy/extraction when the DnD has been completed.
    As Ive understood is that when I want to DnD a file to the desktop, I must have a Transferable that supports the DataFlavor javaFileListFlavor. This will return a List of Files by the getTransferData() method. But the problem is that the Files must exists on the diskdrive before it the DnD starts, ie before the getTransferData() method is called.
    This I cannot do, since I the getTransferData() method is called multiple times during the DnD action, and I dont want to extract the attachment until the DnD is complete. (performance issues)
    My first idea was to create an empty dummy file on the disk, and use this as the source File to be dragged around. Then when the DnD is completed, I would extract the attachment from the email and make the copy manually. Doing it this way, Im sure that
    * theres no unecessary extraction,
    * the user doesnt have to wait until he has choosen where to put the file
    * the extraction is done according to the API for the email client.
    But as it seems now, theres no way of knowing the location of the drop target from the TransferHandler or the DataFlavor. And if I dont know the location of the drop, I cannot make the manual copy.
    Do anyone know of a solution or workaround, using the new or old DnD implementation?
    ANy help is appreaciated!

    Hi RedSolo! I've been working with the exact same problem for quite some time. I think your "workaround" in the frappucino module seems to be the best way to solve this problem. I have almost the same solution in my project. What I would like to do is to present a progressbar during the time it takes to wait for the "create files thread" to finish. But I haven't found a solution since I'm blocking the event thread. Do you have any tips or ideas how to solve this?
    Thankful for any ideas!!

  • Drag and Drop file FROM Java app TO native desktop

    I'm a litte new to Drag and Drop. After a few days of looking around I've been through enough examples to copy and paste some skeleton code and get it working in my own application.
    What I haven't gotten any answers to (after searching on google, newsgroups, and here) is if it's possible to drag something from a Java app to the desktop or file browser, and have java create a file there.
    I know you can drag text to native apps, so I was wondering if you could make a Transferable object that's different than StringSelection(), like a file stream or something.
    Thanks,
    Tristan

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

  • Drag and Drop to native desktop

    I'm working on drag and drop functionality to and from the user's computer. I have the "from" part working just fine, it's the "to" part that is stumping me. The idea for this applet is that it represents a file structure that is up on a remote server, so none of the files are local. If the user drags a file in, I can easily start an upload to push the file up to the server. However, when the user drags an item from the applet to their desktop or whatever folder, the only way to get this to work is to mimic a file, even though there is no file. What I would like to do is have a droptarget listener set up for the OS that will do everything I normally do within the applet (accept the drop, download the file, store it to the appropriate location). unfortunately, i haven't found any documentation on how this could be done. it looks like the OS wants a List of file objects that it simply copies to whatever destination you drag to. I don't see a way to capture where the file is being dropped, or how to maybe place a dummy file while the download is in progress and then replace the dummy file with the real file. Any advice or direction would be greatly appreciated.

    i'm not sure i get the JavaScript references...
    possibly i can re-phrase the problem in a much simpler fashion that could possibly solve my problems. In a drag-and-drop operation from a java application to the native OS, is there any way to know the context of where your transferable data is going? for instance, is there a way to know that the component i'm dragging is going to the Desktop versus "My Documents"?
    If there is a way, I could do some back-door coding so the user appears to be instantly get the file, while in the background the file is actually downloading and will replace the 'dummy' file when the download completes.
    Is that possible?

  • Drag and Drop Files Onto Seagate External Hardrive

    I can't seem to just drag and drop files I want to store on an external hardrive with Seagate. I hate that. I just want a simple drag and drop so I can free up some space on my computer. But Seagate just seems to just seems to say **** you, we're gonna do it backwards ***. Can someone please explain how to just drag and drop files? I have zero idea, and they don't make it simple to understand.
    So for the love of god....please explain it to me (without use of computer terminology or telling me places I should go on my computer that I don't know what the **** they are. Renders your help useless, and it's frustrating because no matter how many times I ask this, you just give me help i can't understand anyway.)
    Please....it's not hard to ask.
    If possible, use step by step instructions, if you need to tell me to go somewhere on my computer, tell me where that is too so I know where to go. Don't be vague, I can't understand vague instructions when i read them.

    What is the drive formatted as? this is extremely likely the issue.
    FORMAT TYPES
    FAT32 (File Allocation Table)
    Read/Write FAT32 from both native Windows and native Mac OS X.
    Maximum file size: 4GB.
    Maximum volume size: 2TB
    You can use this format if you share the drive between Mac OS X and Windows computers and have no files larger than 4GB.
    NTFS (Windows NT File System)
    Read/Write NTFS from native Windows.
    Read only NTFS from native Mac OS X
    To Read/Write/Format NTFS from Mac OS X, here are some alternatives:
    For Mac OS X 10.4 or later (32 or 64-bit), install Paragon (approx $20) (Best Choice for Lion)
    Native NTFS support can be enabled in Snow Leopard and Lion, but is not advisable, due to instability.
    AirPort Extreme (802.11n) and Time Capsule do not support NTFS
    Maximum file size: 16 TB
    Maximum volume size: 256TB
    You can use this format if you routinely share a drive with multiple Windows systems.
    HFS+ ((((MAC FORMAT)))) (Hierarchical File System, a.k.a. Mac OS Extended (Journaled) Don't use case-sensitive)
    Read/Write HFS+ from native Mac OS X
    Required for Time Machine or Carbon Copy Cloner or SuperDuper! backups of Mac internal hard drive.
    To Read HFS+ (but not Write) from Windows, Install HFSExplorer
    Maximum file size: 8EiB
    Maximum volume size: 8EiB
    You can use this format if you only use the drive with Mac OS X, or use it for backups of your Mac OS X internal drive, or if you only share it with one Windows PC (with MacDrive installed on the PC)
    EXFAT (FAT64)
    Supported in Mac OS X only in 10.6.5 or later.
    Not all Windows versions support exFAT. 
    exFAT (Extended File Allocation Table)
    AirPort Extreme (802.11n) and Time Capsule do not support exFAT
    Maximum file size: 16 EiB
    Maximum volume size: 64 ZiB
    You can use this format if it is supported by all computers with which you intend to share the drive.  See "disadvantages" for details.

  • Drag and drop file list to MS PowerPoint

    Hi there !
    I've implemented a Transferable that supports drag and drop of multiple files from java application to natives. I took a DataFlavor.javaFileListFlavor and my getTransferData() method returns a Vector of File. My most important files are images in different formats.
    This runs very well for most of the MS applications like Word, WordPad, Internet Explorer, File Explorer, Paint Shop Pro, .... These application import all my transferred files and show their image(s).
    But I didn't reach for doing this with PowerPoint. On dropping to PowerPoint a message appears: "PowerPoint cannot open files of type <MyFile>."
    If I drag and drop my files to the file explorer and then from there to PowerPoint it works as well as if I take the files my Transferable wrote to a temporary directory.
    What's wrong ? What's the difference between PowerPoint and most other applications ? And What can I do to transfer my files to PowerPoint ?

    Look up javax.swing.TransferHandler, java.awt.datatransfer.DataFlavor, and DataFlavor.javaFileListFlavor.

  • An mp3 file on my computer will not import to itunes by either the drag-and-drop or the Add File to Library method.  Can't figure out what I'm doing wrong.  My OS is Windows 7.

    I purchased an mp3 from a private website on my laptop.  The itunes library i sync ipod to is on my desktop, so i copied the mp3 onto a flash drive and then into my desktop in the Downloads folder and Desktop folder as well as the itunes music folder, 3 places.  I opened itunes on the desktop and read the instructions for importing music that's already in my computer.  Neither the drag-and-drop or the Add File to Library method works.  I've tried both ways over and over.  Cannot figure out what the problem is.  I do note that the name of the mp3 file doesn't show the .mp3 extension, it appears as simply it's title, Eating Healthy, without any extension at all.  Could the filename be the problem, or do you have any other idea what I'm doing wrong?  My OS is Windows 7, using IE9.  Thanks.
    ADDENDUM AFTER READING ANOTHER DISCUSSION HERE:  I have now tried right clicking the song in Windows Explorer and choosing Open With, clicking itunes.  The mp3 plays in itunes but does not add to the library.

    I don't have a Recently Added playlist.  However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes.  I'm guessing iTunes pulled the full name of the piece from the internet.  Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there.  Thanks for your help. 

  • Visual Studio opening files when dragged and dropped in WPF app debugging session

    I'm working on a WPF app (using VS2013 CE) which is intended to manage media files (TV Shows, movies, etc) and as part of this I am enabling the user to drag and drop media files on to the running app (by adding AllowDrop="True" and PreviewDragEnter="Window_PreviewDragEnter"
    to my Window definition).
    The problem I have is that when I drag files onto the app in a debugging session Visual Studio then opens the file(s) when I stop debugging... this is seriously annoying as when I am testing with large media files (> 1GB) it just locks up VS for minutes
    at a time while it tries to open the file or files. When I run the app outside the debugger this does not happen - it's only when I'm in a VS debugging session.  The only way I can stop this happening is to kill VS completely from Task Manager then restart
    it - this is also very annoying but often I need to do this as it will freeze up for 5-10 minutes while it insists on loading the files in VS.
    I understand the app, whilst debugging, is running in the context of VS but why does VS then have to try to open the files when debugging is finished?   I have looked through the options but can't see anything to switch this off and no amount of searching
    has turned up anything - can anyone put me out of my misery with a solution to this annoying issue?

    Hello nzmike,
    Does Visual Studio behaves like the following image shows and just hangs when opening your media file?
    Do you have any other computer which installs Visual Studio? Can you reproduce this on it?
    In order to troubleshoot this issue I think we need to locate the root reason of your issue. The problem can related to the following:
    1. Your project is corrupt and VS then trys to load that file when debug finished.
    2. Your VS is corrupt and caused this problem.
    So please do something below:
    1. Try clean and rebuild your project.
    2. Switch to some other PCs and use VS and your project there, check if the problem can be reproduced.
    3. You can backup your VS setting and try some commands: devenv /resetsettings and devenv /resetuserdata
    Details about VS command:https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx
    And based on th research of the above second step, if you can reproduce this issue on more than one PC, the problem is pending on your project and I need you to share a simple sample which can reproduce this issue. We will need to investigate the project
    in detail.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I drag and drop multiple files on a control?

    LabVIEW supports dragging and dropping a single file on a path control, and have the path control populated appropriately. I want a user to be able to highlight multiple files (say, from the OS Find File window, or anywhere really) and drop them into a path array control in LabVIEW. I was hoping putting a path control in an array would do the trick, but it didn't. The mouse cursor changes to the "+" icon as it did for a single file, but when I release the button the system just beeps. Is this even doable?
    Thanks, Bob Martin

    I guess I was hoping that the path control would realize it was in an array, and starting with the actual control where the drop occurred (if more than one item of the array is visible) start populating subsequent slots with the other file paths.
    I'm not sure how much work would be involved, but maybe I could make a control in VB that would accept the drop event and output the path array I'm looking for. I've never made a control in VB for LabVIEW before, so I'm leary of how much time that would take. I'll add this to my list of "things to do that never seem to get enough priority to do."

Maybe you are looking for

  • GR without PO (501) using own price instead of M.Master Rec's price.

    Hi all, I have the following business process issue which I urgently need your help: Background: Currently our company will perform buying from another subsidiary (another plant in another company code) from a buying price offer by them and this proc

  • Is it Possible to Change Song List Background to Black w/ White Lettering?

    I have the grid view in black and have Silent Night which changes everything else other than the song list and left side-bar to black. Would love to complete my blackout state. I spend lots of time listening to music in the dark. White is the devil.

  • Recipe Change report

    How do I track recipe changes. Is there a table/report that I can access to keep track of recipe changed by user, date and all changes made?

  • Overide Line wrapping in JTextComponent

    Howdy ! Anybody knows how can I achieve my own custom line wrap code for a JTextComponent/JTextPane. I see that these components use the white space as the bench mark to wrap a line. Now if I find and Replace a white space with say &n b s p; , how wo

  • Tree skinning

    Hi, I created Tree component with XML data provider. I want the open brunch and leafs have a different back-color (some dark blue for the brunch and some pale blue for the leafs). the Tree-class properties includ only select/non-select styling. I nee