Drag and drop in windows explor

Hi,
I cant for the life of me ind out if this is possible. Im thinking of buying a Zen Touch 20GB and want to know if it is possible to drag and drop music directly in Windows without additional software. If so, I just might buy it
greetings Twist

If you install the PlaysForSure firmware yes, otherwise you need to install another program for it to work.

Similar Messages

  • I can't drag and drop from windows explorer into my ipod on itunes. Any suggestions?

    Hi,
    I manage my music/podcast library on my Vista PC using windows explorer because I don't like how iTunes does it. Then today I can no longer drag and drop from explorer onto my iPod in iTunes all I get is a circle with a line through it meaning "iTunes says no." Any suggestions?
    Ta.

    You will need to Sync your iPad and all Music/Albums Selected will transfer over from iTunes..
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/HT1386

  • Can't drag and drop from Windows Explorer into iTunes 10

    HI. I recently upgraded to iTunes 10 and now, it won't let me drag and drop files from Windows explorer into iTunes. Is there a setting I need to turn on to get this to work again? I am running Vista.

    I might be wrong, but ...
    I know Microsoft Office 2011 is Mountain Lion compatible.  In fact, Microsoft released updates to it right around the time of Mountain Lion's release to assure compatibility.
    I do not believe Microsoft Office 2008 is Mountain Lion compatible.

  • Drag and drop to Windows desktop

    Hi
    I've been struggling with this for a while, I've got a TransferHandler class that allows drag and drop from Windows desktop to application, now I'd like to do the reverse, but can't seem to provide the suitable DataFlavor to the OS, I'm using javaFileListFlavor obviously. I am currently creating a Transferable with createTransferable, but this is a StringSelection, and I can't remove this because I need it for internal drag and drop in the application. Please advise.
    public class CDrag extends TransferHandler {
        public CDrag(TreeTableView ttv) {
            this.ttv = ttv;
            dndData = new ArrayList();
            relPath = "/";
            try {
                uriFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
            } catch (ClassNotFoundException e) {
        @Override
        public int getSourceActions(JComponent c) {
            return MOVE;
        @Override
        protected Transferable createTransferable(JComponent c) {
            String nodes = "";
            int j = 0;
            TreePath[] sel = ttv.treeTable.getTreeSelectionModel().getSelectionPaths();
            for (TreePath i : sel) {
                FileNode fNode = (FileNode) i.getLastPathComponent();
                if (j > 0) {
                    nodes = nodes + "\n";
                nodes = nodes + fNode.toString();
                j++;
            return new StringSelection(nodes);
        @Override
        protected void exportDone(JComponent c, Transferable t, int action) {
            if (!dndData.isEmpty()) {
                File[] sg = (File[]) dndData.toArray();
             // delete files that are dropped
                dndData.clear();
        @Override
        public boolean canImport(TransferSupport supp) {
            if (supp.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                return true;
            if (supp.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                return true;
            if (supp.isDataFlavorSupported(uriFlavor)) {
                return true;
            return false;
        private boolean importFiles(TransferSupport supp, File[] files) {
         // function that recursively processes all files and folders
        @Override
        public boolean importData(TransferSupport supp) {
            if (!canImport(supp)) {
                return false;
            String fns = "";
            Transferable t = supp.getTransferable();
            try {
                if (supp.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                    File[] fnsl = (File[]) ((List) t.getTransferData(DataFlavor.javaFileListFlavor)).toArray();
                    return importFiles(supp, fnsl);
                } else if (supp.isDataFlavorSupported(uriFlavor)) {
                    String s = (String)t.getTransferData(uriFlavor);
              StringTokenizer st = new StringTokenizer(s, System.getProperty("line.separator"));
              ArrayList files = new ArrayList<File>();
              while (st.hasMoreTokens()) {
                   String file = st.nextToken();
                   try {
                           URL url = new URL(file);
                        files.add(new File(URLDecoder.decode(url.getPath())));
                   } catch (MalformedURLException mue) {
                    return importFiles(supp, (File []) files.toArray());
                } else {
                    fns = (String) t.getTransferData(DataFlavor.stringFlavor);
            } catch (UnsupportedFlavorException ex) {
                Logger.getLogger(CDrag.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(CDrag.class.getName()).log(Level.SEVERE, null, ex);
         // the rest of the code here process a StringSelection
            return true;
        private List<File> dndData;
        private String relPath;
        private DataFlavor uriFlavor;
    }I have the following information available in the FileNode class - the name of the file, the path inside the application, date modified, size, whether it is a file or folder. How do I get these values into a javaFileListFlavor that Windows will understand? Also, I would need a way of returning the actual file data (which will be read from a remote server). The basic File class doesn't allow many of these things to be set.
    Regards
    Lionel

    I have the following information available in the FileNode class - the name of the file, the path inside the application, date modified, size, whether it is a file or folder. How do I get these values into a javaFileListFlavor that Windows will understand? Also, I would need a way of returning the actual file data (which will be read from a remote server). The basic File class doesn't allow many of these things to be set.I know I tried the same thing - I'm not sure this can be done at all, it could be that this can't be done if the file doesn't already exist somewhere on the local file system.
    Edited by: tjacobs01 on Feb 11, 2009 12:41 AM

  • Drag and drop of Windows icons inside Java......possible ?

    Hi all !
    does anybody know if it's possible to do drag and drop of windows icons (like folders) into Java Frames or other containers ?
    I'd like to write an application where the user can drag Windows folders inside a Frame/Container and collect Folder information (the path to the folder)
    Is it possible to do it ?
    Thanks a lot
    Francesco

    Hi,
    It is possible.
    You can drag platform independent objects like folders, icons etc. from the native platform to your java app.
    The Java-Object you need in this case is a
    DataFlavour like
    DataFlavor.stringFlavor // for text
    DataFlavor.javaFileListFlavor // for folders
    in the tutorial jacob has linked you find more about this.
    Olek

  • Activating Drag and Drop As window in jdevstudio1013

    Dear All,
    I'm using jdevstudio1013.I don't see Drag And Drop As Window below Component window.Instead I see Property Inspecter Window .
    How to activate Drop And Drag As window?
    With rgds,
    Shrinaw

    Hi,
    The project is set as a JSF project.
    And yes, there are the following error messages in the console when trying to drop a method into the page. The create command button / link dialog appears, and after choosing an option, nothing happens.
    2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.bali.xml.model.XmlModel$4@ebad43 on model orac
    le.jdevimpl.webapp.jsp.JspXmlModel@eefa28; txn name=internal txn
    oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil$InvalidArgumentXmlException: Body node is not valid location for inserting Messages element. Try inserting at another location in the document.
    at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil._doInsertNodes(ModelDomUtil.java:1716)
    at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil.doInsertNodes(ModelDomUtil.java:1599)
    at oracle.jdevimpl.webapp.common.WebAppXmlModel.insertNodesImpl(WebAppXmlModel.java:124)
    at oracle.bali.xml.model.XmlModel$4.performTask(XmlModel.java:1414)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.bali.xml.model.XmlModel.insertNodes(XmlModel.java:1384)
    at oracle.jdevimpl.webapp.editor.LayoutXmlView$1.performTask(LayoutXmlView.java:194)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.jdevimpl.webapp.editor.LayoutXmlView.insertNodes(LayoutXmlView.java:181)
    at oracle.bali.xml.model.AbstractModel$1.performTask(AbstractModel.java:466)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:190)
    at oracle.bali.xml.model.AbstractModel.insertXmlKey(AbstractModel.java:447)
    at oracle.adfdtinternal.view.faces.addin.ADFBindingXmlContextListener$AddMessagesPostInsertionTask.performTask(ADFBindingXmlContextListener.java:227)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.adfdtinternal.view.common.binding.operation.CreateOperation$1.
    performTask(CreateOperation.java:170)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(Sta
    ndardTransactionTask.java:167)
    at oracle.adfdtinternal.view.common.binding.operation.CreateOperation.apply(CreateOperation.java:147)
    at oracle.bali.xml.model.datatransfer.operation.PerformOperationAction.actionPerformed(PerformOperationAction.java:39)
    at oracle.bali.xml.share.ActionProxy.actionPerformed(ActionProxy.java:47)
    at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy.actionPerformed(DropMenuInvoker.java:235)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.jdevimpl.webapp.editor.LayoutXmlView$1@bc1eb2
    on model oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=internal
    txn (exception previously logged)
    2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.bali.xml.model.AbstractModel$1@833c98 on model
    oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=Insert Messages (exception previously logged)
    2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.adfdtinternal.view.faces.addin.ADFBindingXmlContextListener$AddMessagesPostInsertionTask@1ff5bf1 on model oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=Add faces messages task (exception previously logged)
    2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.adfdtinternal.view.common.binding.operation.CreateOperation$1@1ed3ca7 on model oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=Create ADF Command Button (exception previously logged)
    oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil$InvalidArgumentXmlException: Body node is not valid location for inserting Messages element. Try inserting at another location in the document.
    at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil._doInsertNodes(ModelDomUtil.java:1716)
    at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil.doInsertNodes(ModelDomUtil.java:1599)
    at oracle.jdevimpl.webapp.common.WebAppXmlModel.insertNodesImpl(WebAppXm
    lModel.java:124)
    at oracle.bali.xml.model.XmlModel$4.performTask(XmlModel.java:1414)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.bali.xml.model.XmlModel.insertNodes(XmlModel.java:1384)
    at oracle.jdevimpl.webapp.editor.LayoutXmlView$1.performTask(LayoutXmlView.java:194)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.jdevimpl.webapp.editor.LayoutXmlView.insertNodes(LayoutXmlView.java:181)
    at oracle.bali.xml.model.AbstractModel$1.performTask(AbstractModel.java:466)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:190)
    at oracle.bali.xml.model.AbstractModel.insertXmlKey(AbstractModel.java:447)
    at oracle.adfdtinternal.view.faces.addin.ADFBindingXmlContextListener$AddMessagesPostInsertionTask.performTask(ADFBindingXmlContextListener.java:227)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.adfdtinternal.view.common.binding.operation.CreateOperation$1.performTask(CreateOperation.java:170)
    at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
    at oracle.adfdtinternal.view.common.binding.operation.CreateOperation.apply(CreateOperation.java:147)
    at oracle.bali.xml.model.datatransfer.operation.PerformOperationAction.a
    ctionPerformed(PerformOperationAction.java:39)
    at oracle.bali.xml.share.ActionProxy.actionPerformed(ActionProxy.java:47)
    at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy.actionPerformed(DropMenuInvoker.java:235)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Thanks,
    Patrik
    (PS.: Is it the right thread or should I start another one?)

  • Cant drag and drop in windows 7

    cant drag and drop in windows 7 with itunes

    Same exact problem.  Drag and drop is not working in any fashion.  I cant drag files to the library or to the ipod.
    Itunes 10.4 Windows 7 64
    Any Help??!?

  • Drag and Drop issue from Explorer folder to Music Library

    Hello
    I just updated my iTunes to 8.0.0.20 but something unexpected happened. I can’t drag and drop anymore songs from an explorer folder into my music library when my view mode is set to Grid (Album, Artist, Genre or Composer).
    When I try I have a kind of interdiction circle under my pointer.
    I can only perform this operation in list mode view. Few hours ago it was still possible to perform it but not after I updated. I reinstalled my iTunes but the problem persists.
    I have read the forums I know I can add to my playlist as usual by using the menu. But is it possible to get drag and drop operation when I drags song directly from a folder on my explorer window?
    It would be very appreciated if someone has an answer. I really messed up my library trying to fix this

    I fixed the drag and drop issues I had! Turns out they were caused by the permission problems of Vista. To fix it I just made sure all the files in the iTunes folder and sub folders were full control by my account.
    Make sure you check the properties of the iTunes database specifically because before, the iTunes folder had the correct permissions but they hadn't actually been inherited correctly by the iTunes DB files. Hope this helps anyone else.

  • Drag and Drop using Windows Explo

    Hi, I have a Zen Touch 20GB with firmware upgraded to version 2..0. I understand that it is possible to drag and drop files using windows explorer to the mp3 player. However, whenever I try to copy a folder containing audio files I always get a error stating that I don't have the permission to copy the audio files. I am able to copy other non- music files well and I have administrati've rights. Is this problem due the fact that audio files must reside within the default Music folder within the mp3 player? Can anyone kindly help me on this issue? Thanks a lot.

    yes but there must be a folder for music only ex:
    ----------------------------------explorer------------------------------------------------
    file View edit tools HElp WINDOWS
    FOLDER ... FOLDER.... FOLDER
    hard.. dri'ves
    C:ICON... D:ICON... OR... F:ZEN
    OR.
    OTher
    .zen. ..pretend.. this ..is ..the ..icon
    -subfolders
    ... - .MUSIC. ... .DATA. .ROOT.
    .. you should
    .. drag ur music into music \ data goes in\ and right here im guessing
    \ data folder\ is were ur contacts are
    and yah //Message Edited by kickenchicken on 07--2006 09:54 PM

  • Drag and drop in windowed application

    i have created application using drag and drop funcatinalities .it's working in webbrowser as internet application .but i converted int o a windowed application and dra and drop isn't working in that form as desktop app.
    pls help me
    thank you.

    Maybe I should mention that this drag and drop feature doesn't work on ALL the programs, which leads me to believe that this is a system preferences problem. I can't drag into any of the Adobe programs, iPhoto, Kodak Easyshare, etc.
    I understand the Get Info solution, but that is pinpointing only one type of file... I would like to fix this feature for all files.
    Thanking in advance, Ck

  • AIR Drag and Drop between Windows

    I can’t seem to get a simple use case to work:
    I have an AIR app that has two <mx:Window> built as separate MXML components, one is called “DragSourceWindow” the other “DragTargetWindow”.  Inside the “DragSourceWindow” is a canvas that can be dragged out of the window and dropped into the “DragTargetWindow”.
    Code:
    “Main AIR App”: http://pastie.caboo.se/private/wxcsvvxglm7aabf3xqta
    “DragTargetWindow”: http://pastie.caboo.se/private/ysgv3kpr6suiakutnvt4g
    “DragSourceWindow”: http://pastie.caboo.se/private/yybaslwsfz12znygyjvva
    SVN Repo: http://zclguialvgrid.googlecode.com/svn/trunk/examples/DragManagerIssue/
    Inside each <mx:Window> are some trace messages to see what is going on:
       1. When a DragManager.isDragging is true
       2. When you drag into a drop target
       3. When you drop an item into a drop target
    However, once you drop the canvas into a window and mouseover it again the DragManager still thinks a drag is active.
    I am using the release versions of FB and AIR.
    What am I doing wrong?

    Nevermind, you can't use DragManager at all in AIR it seems if you leave a window.  You have to directly use the NativeDragManager.
    Strange because it seems like the DragManager singleton manages that for you -- but it doesn't.

  • Problem with drag and drop application windows from one workspace to another

    I work with multiple desktops (Spaces) and before I freely dragged the mouse a window from one space to another, now the mouse rests on the edge of space and the application does not become the next space. What am I doing wrong or where this option is set?

    After the publication of the problem has disappeared, the window is dragged. Miracle! )

  • WindowedApplication/ Drag and drop in Windows OS

    Hi,
    I have AIR application which is running on Mac  OS and Windows. This application is standard desktop application  (WindowedApplication). I use there drag&drop for moving preview of  images. My problem is if preview image is large (width > 200 or  height > 200) then drag preview is not correctly visible. The dragged  preview on left top corner is correct but in right bottom corrner is  not visible. There is some  transient.
    On Mac OS is all ok only in Windows is this problem.Can somebody help me with it?

    If you install the PlaysForSure firmware yes, otherwise you need to install another program for it to work.

  • Dragging over a Subdiagram Label breaks drag-and-drop from Project Explorer

    This bug has proven to be perfectly repeatable on my system. I'm using the LabVIEW Core 3 Course Project to reproduce:
    1. Open the block diagram of a VI with while loop or case structure whose Subdiagram Label is visible.
    2. Drag a VI or control from the project explorer onto the block diagram.
    3. Drag the VI over a Subdiagram Label, then away from it.
    RESULT: Object is ready to be dropped until you drag over a Subdiagram Label; after this the object cannot be placed, as though it is always in an invalid location. See attached pictures.
    I'm using LV 13.0f2
    Ryan R.
    R&D
    Attachments:
    1 - drag VI onto block diagram.png ‏11 KB
    2 - drag VI over Subdiagram Label.png ‏11 KB
    3 - drag VI away from Subdiagram Label.png ‏11 KB

    Sorry for the delay, I was out teaching for a while.
    I have filed CAR 449383 documenting this issue.
    Regards,
    Craig H. | CLA | Systems Engineer | National Instruments

  • Drag and Drop fom windowsexplorer

    Hi all
    we are in need of a functionality where in files from the windows explorer of windows OS has to be dragged and dropped in javafx application.I got a code which works fine in Java. It uses DropTarget, Transferable and DataFlavor classes. If any one knows how this can be integrated with javaFX, it wouhld be helpful
    Thanks in Advance
    Regards
    Anbarasan

    Hi
    We used totally 3 classes. One is EditorDropTarget.java class and other one is teestswing which should extend the swingcomponent. Create a instance in main.fx and now we can drag and drop from windows explorer. this example will print the url in the output.using this we can show the image.
    EditorDropTarget.java
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package dragdropinfx;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.dnd.DnDConstants;
    import java.awt.dnd.DragSource;
    import java.awt.dnd.DropTarget;
    import java.awt.dnd.DropTargetDragEvent;
    import java.awt.dnd.DropTargetDropEvent;
    import java.awt.dnd.DropTargetEvent;
    import java.awt.dnd.DropTargetListener;
    import java.io.File;
    import java.util.Iterator;
    import java.util.List;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    * @author Pradeep
    public class EditorDropTarget implements DropTargetListener
    protected JScrollPane pane;
    protected DropTarget dropTarget;
    public EditorDropTarget(JScrollPane pane)
    this.pane = pane;
    // Create the DropTarget and register
    // it with the JEditorPane.
    dropTarget = new DropTarget(pane, DnDConstants.ACTION_COPY_OR_MOVE,this, true, null);
    @Override
    public void dragEnter(DropTargetDragEvent dtde)
    System.out.println("implements 1");
    @Override
    public void dragOver(DropTargetDragEvent dtde)
    System.out.println("implements 2");
    @Override
    public void dropActionChanged(DropTargetDragEvent dtde)
    System.out.println("implements 3");
    @Override
    public void dragExit(DropTargetEvent dte)
    System.out.println("implements 4");
    @Override
    public void drop(DropTargetDropEvent dtde)
    try
              Transferable transferable = dtde.getTransferable();
              if (transferable.isDataFlavorSupported(DataFlavor.javaFileListFlavor))
                                       if(dtde.getDropAction()==DnDConstants.ACTION_LINK) System.out.println("link");
                                       if(dtde.getDropAction()==DnDConstants.ACTION_COPY) System.out.println("copy");
                                       if(dtde.getDropAction()==DnDConstants.ACTION_MOVE) System.out.println("move");
                                       if(dtde.getDropAction()==DnDConstants.ACTION_COPY_OR_MOVE) System.out.println("copy or move");
                                       dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);
                                       Iterator iterator = ((List)transferable.getTransferData(DataFlavor.javaFileListFlavor)).iterator();
                                       while (iterator.hasNext())
                                            File file = (File)iterator.next();
    System.out.println(" File : >>>>>>>>>>>>>>>>>> :"+file.toString());
                                            JLabel label = new JLabel("", new ImageIcon(file.getAbsolutePath()), JLabel.LEFT);
    //                                        new DragSource().createDefaultDragGestureRecognizer(label, DnDConstants.ACTION_COPY_OR_MOVE, new MyDragGestureListener(file));
                                       dtde.dropComplete(true);
                                  else
                                       dtde.rejectDrop();
                             catch (Exception e)
                                  e.printStackTrace();
    System.out.println("implements 5");
    TestSwing.fx
    * TestSwing.fx
    * Created on Mar 2, 2010, 6:30:53 PM
    package dragdropinfx;
    import javafx.ext.swing.SwingComponent;
    import javax.swing.JComponent;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    * @author Pradeep
    public class TestSwing extends SwingComponent {
    override function createJComponent(): JComponent {
    var panel = new JPanel();
    panel.setSize(4410, 4410);
    panel.setBackground(new java.awt.Color(250, 123,21, 10));
    var scrollPane = new JScrollPane(panel);
    var target : EditorDropTarget = new EditorDropTarget(scrollPane);
    return scrollPane;
    Main.fx
    * Main.fx
    * Created on Mar 1, 2010, 6:47:55 PM
    package dragdropinfx;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.Group;
    * @author Pradeep
    var fileName :String ;
    var image:Image = Image{
    width:400
    height:400
    url:fileName
    var imageView :ImageView = ImageView{
    image: bind image
    // var rect:Rectangle = Rectangle
    // width:400
    // height:400
    // fill:Color.RED;
    // onMouseEntered: function (e:MouseEvent)
    // image= Image{
    // width:400
    // height:400
    // // url: (new DragAndDrop()).getFile()
    // (new DragAndDrop()).getFile()
    //// onMouseExited: function (e:MouseEvent)
    //// image= Image{
    //// width:400
    //// height:400
    //var obj:SwingDropTarget = SwingDropTarget{};
    //println(">>>>>>>>>>>>>{obj.content}");
    var obj:TestSwing = TestSwing{};
    println(">>>>>>>>>>>>>{obj}");
    Stage {
    title: "Application title"
    width: 410
    height: 410
    scene: Scene {
    content: [
    Group{
    content:[obj]
    Regards
    Anbaraasn

Maybe you are looking for

  • Macbook Pro, how to reset invalid external display resolution?

    Hi there. I have a question about the external display configuration. I recently connected my 2011 Macbook Pro 13" (10.8.2 Mountain Lion) to an external HD-TV using Thunderbolt to VGA adapter. After connecting the TV had 1920x1200 resolution which ma

  • IOS 8 + landscape mode + AIR SDK 16 & 17 = problem with lost context

    It's seems that the "landscape" orientation make a 100% reproductible beug on my apps when I return to it after calling the camera or "picture explorer" (with a native extension or with AS3, this is the same problem). The problem is huge !! : no more

  • (Application) Automatically close manufacturing orders

    Hello Esperts I pose the following situation to be analyzed and included in future versions of SAP BO. In companies that handle a high volume of manufacturing orders and how to make the consumption of materials and receipt of production is the produc

  • Acceleration to position.

    I am using accelerometers (+/-2g) in an inertial navigation system. The input voltage is proportional to the acceleration. The aim is to produce a map of XY coordinates. I also want to be able to plot events at the coordinates they occur at. Somethin

  • Why am I unauthorized to import my pictures?

    when I insert my memoery card, an error message comes up saying i am not authorized to upload the pictures.