Drag And Drop From Windows To A Swing/JFC App?

Posted on 2004-11-05
Last Modified: 2013-12-14
Hi all,

Quick Question: Does anyone know of a reference/tutorial that I can use for the following:

- I want to drag and drop a File/Folder from Windows Explorer into my Java JFC/Swing app.

Is this even possible using a pure-Java solution?  Or does Drag and Drop in Swing always have to be from one Swing app to another?

Question by:MattMejaski
    LVL 3

    Assisted Solution

    LVL 9

    Accepted Solution

    Sure, use a JList, you can then drag multiple files onto it, and have them displayed.. this also enables you to remove certain files from the list, etc..

    Check out here for more info:

    These links are also useful:

    Best of luck ":0)
    LVL 9

    Expert Comment

    Ta  :-)

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now