Drag & Drop Links

Hey,
could someone help me to find an example or a tutorial how to code Drag & Drop for Files?
In my demo I'd like to get the file path of a dragged object (e.g. a folder or a file from somewhere on the desktop or from the explorer..). All I could find so far was drag and drop for labels, texts etc, displayed in the same program somewhere.
I know that the file thing should be possible, too, but can't find usefull information on that, like articles or how tos or any kind of links. TIA

As I overflew it briefly, it seems that it's only
possible if the "File" to drag is already contained
in a Java JFrame like window - is there no way to
simply drag a file from somewhere on the desktop or
the explorer on to the Java application (I know, it
seems to be hardly possible to provide functionality
like this and to stay system independant, but is
there a way)?There must be - I meant this is exactly what I did. But it was long ago... I remember it wasn't very complicated to implement, but I don't remember how I did it. Sorry.

Similar Messages

  • Why can't I Drag & Drop a link from my address bar to my Bookmarks Toolbar in 4.0? I have the toolbar activated, but I can't do this. I was able to do it no problem with 3.6.

    Drag & Drop for bookmarking a link from Address bar to Bookmarks Toolbar is not working in 4.0. Was working in 3.6, then I upgraded to 4.0 and everything got screwed up. How can I fix this?

    I ditched 4.0 and went back to 3.6.17 but I can't drag and drop with it either. The Favicom idea didn't work for me either. Once in a great while it will work, but usually that ends up screwing up my bookmarks and everything being re-arranged. How could something so simple and basic NOT WORK anymore?

  • 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.

  • How can cocoa app get attachment in Drag & Drop email(s) from Mail?

    HI all,
    I would like to drag and drop one or more emails from Apple's Mail application to a cocoa application and have the cocoa application find the path to the attachments in those emails. If I drag & drop a message from Mail to Text Edit, it creates a link with the message subject. If I hold the pointer over the link in Text Edit, it shows the contents of the link, which has the form:
    message:%[email protected]%3E
    If I click that link, it opens a new Mail window with the message. None of that is the message number as shown in Mail's viewer window.
    I've also looked at what Pasteboard Peeker shows given a Drag & Drop from Mail. The above link data is from the public.url pasteboard type. Some of the others look interesting, but Pasteboard Peeker truncates the data read from the pasteboard, and the pasteboard types are probably nothing that we "supposed" to have access to since they have names like "Someone's super-secret pasteboard type". Any other ideas?

    Thanks, a brody.
    That tip takes me further down the field. And, I am able to do stuff like indent and change font color of my comments which is very helpful.
    However, the big disappointment is that by dragging the original message to the Draft mailbox and then back to the original one after the edits is that it removes the original sender's name and puts mine in along with changing the heading info on date and time. That is, it creates a new message, rather than allowing me to modify the original one to suit my needs.
    All the same, this was a very helpful tip. Thanks again.
    Anyone know of a plugin?..............or two?....

  • When I drag a link into a neighboring tab, how do I prevent Firefox from moving me into the new url?

    When I drag a link from tab #1 into tab #2, (Firefox 3.6.6) my browser window automatically shifts to tab #2. I've noticed that dragging into the lower portion of neighboring tabs is supposed to prevent this, but it's hit-or-miss. How do I kill this "feature" so that I can simply drag and drop while staying on the original page?
    == This happened ==
    Every time Firefox opened
    == Several versions ago.

    No, you can't avoid that.
    The purpose is that you can drag text or a link from one tab to a text area in another tab and to achieve that the tab must be opened and focused.

  • Simple drag&drop with handler doesn't work in Edge?

    Hi all!
    I made this very simple example of Drag&Drop in Edge: http://www.terredainventare.it/simpledrag/simpledrag.html using Jquery Ui http://docs.jquery.com/UI/Draggable.
    I try to use the JQueryUi "handle" property that makes you drag an object restricting drag click on only one element but it doesn't work.
    Here's the code I've put in Edge onCompositionReady:
    sym.$("drag").draggable({ handle:"handler" });
    Of course my two Div-elements are called "drag" and "handler". Now the drag works only on the "wrong" element and not on the "handle".....
    Here's the Adobe Edge files: http://www.terredainventare.it/simpledrag/web.zip
    Many thanks in advance for your help!
    Davide

    So, on stage i add a rectangle named "drag" and i try this code:
    yepnope({
                nope:[
                'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js',
                'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css'
                complete: init
    function init() {
             //$("#Stage_drag").draggable();
             //$(sym.lookupSelector("drag")).draggable();
             sym.$("drag").draggable();
    3 lines work: $("#Stage_drag").draggable() or $(sym.lookupSelector("drag")).draggable() or sym.$("drag").draggable()
    And css file is not required.
    Well, your dowload link is not perfect but i download your folder. See you later.
    There is a tutorial: a movie tutorial (adobe tv). Mix it baby! Extending Edge Animate 02:57
    They use: yepnope (both, callback)
    yepnope({
         both: ['jquery-ui.min.js',
                   'jquery-ui.css'
         callback: function(){sym.$("drag").draggable()}
    I will send you your files tomorrow (private message).

  • Drag&drop in demonstration mode?

    Hello,
    I created a cp-file in demonstration mode. One slide shows a
    drag&drop action. When I start a preview the drag&drop
    action is not displayed. Instead, for a few seconds, the screen
    shows nothing. Is that an error or quite normal? How can I animate
    the drag&drop action?
    Thanks for any help!
    Mettemarit

    Welcome to our community, Mettemarit
    See if the link below helps.
    Click
    here to view the thread
    Cheers... Rick

  • Can't drag/drop or copy/paste; spotlight missing

    I can no longer drag/drop or copy/paste files or folders.  I can select "copy" but the option to "paste" is grayed out.  I also no longer have spotlight on the menu bar. 
    One possible cause - there's a tmp folder in my trash bin.  I have no idea how it got there.  Is that the cause?  if so, how do I reinstall the tmp folder?
    I'm running 10.5.8 on a Macbook Pro.  Thanks.

    BDAqua wrote:
    Hello, the ones in the link I gave...
    Mac OS X 10.2.8 or earlier
    Open Terminal (/Applications/Utilities/).
    Type:ls -la / | grep tmp
    Press Return.
    Look at the resulting text. If it matches the following line (which would indicate that /tmp is still present) then this document does not apply to you, and you should stop here and try another troubleshooting path.
    lrwxrwxr-t 1 root admin 11 Jan 15 11:00 tmp@ -> private/tmp
    The timestamp following "admin" will reflect the current date.
    If you do not see the line above, then type:
    sudo ln -s /private/tmp /tmp
    Press Return.
    Enter your administrator account password when prompted, the press Return.
    I still have a question, but first.....
    THANK YOU SOOOO MUCH! I can't express how thankful I am for this post! Had the same exact problem as the discussion starter. I didn't even notice Spotlight was gone until finding this post! I thought the issue was Adobe/app related until copy/paste didn't work!
    ***If you try the code, after entering your password successfully, make sure you RESTART your computer!!!***
    Now to my questions. Please help if you can:
    1) I can see that the tmp folder is an alias folder now; but can I still delete the original folder that's still in the trash (which is minus two files now, because I tried emptying the trash)?!??
    2) Also, I have a x2 backup of the original folder before putting it in the trash (and emptying; that's how I know the tmp folder is minus two files). So my second question is, can I put the backup folder BACK where the alias folder is, and them delete the alias!???
    Thanks for any answers! That last thing I want to do is mess up again!! :/

  • HT4942 my iwork says it no longer supports drag & drop for excel... why?

    my iwork says it no longer supports drag & drop for excel... why?

    '''Swarnava''', I do believe he has already been downloading and installing Firefox 9.0.1 three times already.
    '''avowedrep''', your user agent appears as if it is Firefox 3.5.19 in more system details link on right of your post.
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19
    See this on how to reset to default.
    https://support.mozilla.com/en-US/kb/websites+or+add-ons+incorrectly+report+incompatible+browser#w_reset-your-user-agent
    As for the ''"Warning: this version of firefox is no longer supported?"'' is sounds as if you still have the old http://www.google.com/firefox Firefox start page hosted by Google as your homepage. This old default homepage is no longer used (Firefox 3.6.* and earlier) as '''about:home''' has been in use since Firefox 4.0
    Either ignore the "You're not on the latest version of Firefox" message, change homepage to '''about:hom'''e, change it to another page or leave blank.
    http://support.mozilla.org/en-US/kb/How+to+set+the+home+page

  • Why can't i drag text/link to the tab bar and have it open a new tab?

    Whenever i drag highlighted text, drag a URL, or drag a link to an image/video to the tab bar nothing happens. Previously FF would open this as a new tab, but i can't seem to find out what is wrong.

    ''in Chrome you can drag a text to a new tab and Google(or your default search engine) gives you the search results of that text in that new tab''
    ''Sometimes it works, sometimes it randomly opens a nonexistent .com-less url or appends .com for no reason.''
    Nothing happens when I drag text and drop it on a tab or the new tab button. Do you need to wait for the tab to display and then drop it on the address bar?
    Two alternatives might be:
    (1) Right-click selected text, then choose Search Google for... to open a search in a new tab
    (2) Hold the Alt key while dragging and dropping the selected text onto the search box/search bar to open a search in a new tab

  • Exort to iWeb or drag & drop?

    Hi,
    when doing a photo page in iWeb, what is the difference between export to iWeb function in iPhoto and drag & drop between iPhoto album (or Finder) and iWeb? It turned out that when I draged and dropped from an iPhoto folder I didn't get all photos into iWeb, some was missing (the ones I hadn't edited i iPhoto, I figured after a while...). I guess export function is to be preferred then, but what is the difference?
    TIA
    Mans
    iMac G5, iMac 450 DV, iBook 300   Mac OS X (10.4.8)  

    There shouldn't be any real difference. Some people find it difficult to drag and drop photos into the Photo Template. There's also a 99 photo limit for the photo grouping on a photo template, so if you try to drag and drop more than that iWeb will randomly pick 99 for you and leave the others out (without telling you which ones).
    Also, if you already have your photos organized into albums in iPhoto and you want an easy way to make gallery index pages and photo albums automatically, try the method in this link...
    http://www.mac.com/web/en/Tips/013C4180-4787-4847-BAAB-319222AFC652.html

  • Drag & drop to other programs won't work

    Today i installed firefox 24. I tried to drag & drop a picture from google pictures to the program tag & rename. That didn't work.
    Drag & drop to my desktop works ok.
    Drag & drop from internet explorer to tag & rename works fine.
    Till today i had a nightly firefox and there drag & drop works fine. But after the last update from the nightly firefox was a lot slower.
    So i got back to firefox 24.
    I have a 64 bit pc with windows 8.
    I hope someone can help me
    Ronald

    I tried what you said and it is true that the image directly dragging out a white box, but I'll give you a solution to see if it works. Instead of dragging the image directly, first select "View Image", and once you open the image in the browser, drag image to the document. In this way I have not had any problems with the images and the websites I've tried.
    You can download the latest version of Firefox from my site ''(link removed by moderator)''
    Greetings!!

  • Drag & Drop, ALV or Table Control to Tree Control

    Hi Experts,
    If i want Drag & Drop feature in ALV or Table Control to Tree Control

    Hi,
      refer to the link below:
    http://help.sap.com/saphelp_46c/helpdata/fr/22/a3f5fbd2fe11d2b467006094192fe3/content.htm
    With luck,
    Pritam.

  • IC Agent mails attachment - Drag & Drop the file from local/desktop into mailform

    Dear Gurus,
    Please help me regarding the following it's urgent please!
    We have implemented the Interaction Center, in that we have one requirement, where uses/agents wants to attach/upload the file using drag & drop (mouse) method. The standard process is there will be an attachment block where we have button called browse, using this we can attache a file. Please suggest me is there any standard option/configuration to do this, if no standard way at least guide me how to achieve this using technical expertise.
    Thank you very much and Regards,
    Niranjan

    Hi Niranjan,
    Up to my understanding, SAP is working on this requirement of bringing the drag and drop upload functionality. You can find more information in the below link.
    You Asked for it, SAP Delivers: Twenty-Four (24) Cool New CRM Enhancements!
    Regards,
    karthi M R.

  • [svn:fx-3.x] 11952: Merging a drag/ drop related trunk change that should have made it into 3.x.

    Revision: 11952
    Revision: 11952
    Author:   [email protected]
    Date:     2009-11-18 12:42:08 -0800 (Wed, 18 Nov 2009)
    Log Message:
    Merging a drag/drop related trunk change that should have made it into 3.x.
    QE notes: None
    Doc notes: None
    Bugs: SDK-15988
    Reviewer: Jason (originally)
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15988
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/airframework/src/mx/managers/NativeDragManagerI mpl.as

    Obrigado, Dude! Instalei o SQL Developer agora mesmo no GNU/Linux Ubuntu 11.10, depois de uma longa procura na internet pela melhor forma de instalar o SQL Developer. Parabés pelo "post".
    Traslate:
    Thanks, Dude! I installed SQL Developer now in GNU / Linux Ubuntu 11.10, after a long search on the internet for the best way to install SQL Developer. Parabés by "post". 

Maybe you are looking for

  • Computer Crashed,how do I get music back into itunes w/o erasing Ipod?

    My computer crashed, and I had to get a new hard drive. I was able to save all of my music on cd, and it is all still currently on my Ipod. I have downloaded Itunes again, but how do I upload all the music on my ipod into Itunes without it automatica

  • The best way to read characters from a single line?

    my problem is i have is that 0-5 characters are on one line i need to split this up as each single letter stands for a word i.e - f = football. i need to separate each one. also a person can have up to five hobbies (the letters stand for likes or dis

  • Deleting apps from download queue

    How can I delete a paid app from my download queue? It was not successful as I did not have billing details. I have an app which I bought for $1.99 (I think) on my iPhone. When I wanted to install it on my iPad, I found an app with a same screenshot

  • Duplication of fields headings...

    Hi All I have three fields from different tables (mara-lvorm, marc-lvorm, mard-lvorm), they displaying fine on the alv grid but when i export the data to excel the column headings are duplicated. What can i do to solve this problem beacuse i have cre

  • Having trouble syncing to ITUNES

    I am a new IPHONE user.  Loaded ITUNES but I am having trouble connecting/syncing my IPHONE.