Drag and Drop is duplicating images on an iPad...?

Hi,
I have a drag and drop interaction in my CP8 course. I'm dragging several sources into one target, and it's functioning perfectly in all browsers. However, when you complete the interaction on the iPad, it's duplicating the last image that the learner drags into the target. It doesn't matter which drag source it is, it's always duplicating the very last one.
Any idea why this would be happening or how to fix it?
Thanks,
Kristen

Thanks for quick reply and help. I am able to drag multiple files but this is giving problem in case of filename with spaces like "abc def.png". Can you please put some thoughts on this.
DataFlavor uriListFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
               Reader in = (Reader)t.getTransferData(DataFlavor.plainTextFlavor);
               BufferedReader br = new BufferedReader(in);
               String uriStr;
               while ((uriStr = br.readLine()) != null)
                   URL url = new URL(uriStr);
                   String category = GalleryUtils.contentsPanel.getCurrentCategoryPath();
                   GalleryUtils.generateILPFromFile(new File(url.getFile()), category);
               }Thanks
Kanni

Similar Messages

  • How can I drag and drop an icon/image into a panel??

    Dear Friends:
    How can I drag and drop an icon/image from one panel into another target panel at any position in target panel at my will??
    any good example code available??
    I search for quite a while, cannot find a very good one.
    please help
    Thanks
    Sunny

    [url http://java.sun.com/developer/JDCTechTips/2003/tt0318.html#1]DRAGGING TEXT AND IMAGES WITH SWING

  • Drag and drop questions using image and painting

    Hi all,
    please apologize me if i'm posting a just discussed topic, but I couldn't find anything that could help me.
    I'm trying to create an application where I've a Jtree on the left panel that contain entities that have to be dragged and dropped in the central panel (eventually pasting a representative image) as user decide.
    I've just implemented all panels and jtree. I read java tutorial on drag and drop, but I don't know HOW i can paste image as objects that then i can manipulate in such a way that the user needs.
    Do I have to use java.awt.dnd package?
    Please, I'd like to receive some suggestion about.
    Thanks in advance for your kindness.
    Vincenzo

    I'm sorry, I think that i've not been clear in my explanation. I don't know how to transfer by drag & drop an image (a node of a jtree) to a beside panel. I don't want to get code, it will be more appreciate suggestions on how to proceede.
    I don't understand if I need java.awt.dnd package. On java tutorial I read that it shouldn't have to be used.
    Thanks, I hope that I've been clearer now.

  • I can't drag and drop a Goggle image onto a Word doc.

    Is there a Firefox preference that allows images to drag and drop onto a Word doc?

    For what it's worth, this worked for me using the beta version of Firefox 4 and Word for Mac 2011. If it doesn't work for you, try dragging the image from Firefox to your desktop, and then from your desktop into Word.

  • How to drag and drop from shared library to iphone/ipad?

    Since our Mac Pro has more storage, that's where I keep our iTunes videos, to avoid taking up space on my wife's laptop. Sharing the libraries works ok, except for one issue.
    When my wife wants to put movies onto her iPhone or iPad, iTunes won't let her drag and drop them directly from the shared library. She can copy them just fine to her local library and from there to the devices, but that is cumbersome and takes up disk space.
    Please don't tell me it isn't possible because we did have it working for some time, I just don't know what's changed. The devices are set to "manually manage", drag and drop works locally, just not from the share.
    Thanks!

    Take a look at this tutorial: [url http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html]How to Use Drag and Drop and Data Transfer.
    If you read it carefully and study the samples, I think you should get rid of your first question.
    Concerning the second question, you can overwrite the isCellEditable(int row, int column) method to return false. This will block any editing from the table.
    Hope this helped,
    Regards.

  • How do I stop finder from opening a new window every time I download an image (drag and drop)?

    Before I updated my computer I could drag and drop a new image from the internet to wherever I wanted on the desktop. Now when I download a new image from the internet it opens the "Desktop" finder windo. Also it systematically downloads the new image to be placed underneath the last downloaded/organized file. How do I stop it from doing both of these things?

    Try relaunching the Finder > Relaunch Finder… from the Mac OS X Finder

  • Cap 4 Corrupts on image drag and drop

    Hi All,
    I have run into a very frustrating problem with Cap 4. I will be working along creating slides then when I drag and drop a JPEG image into the movie:
    1. the timeline on that side disappears 2.the project corrupts and will not save or open previously saved project.
    Anyone have any ideas?
    Thanks

    Hi there
    Perhaps try first saving the image, then using the Insert > Image menu command. See if that results in better behavior.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Drag and drop to illustrator

    Hi All,
    Using CS6 Mac, I am  un successful in dragging and dropping a scanned image from PS to Illustrator.
    In the past i was able to do this with CS3 PC.
    Is this task possible?
    Mike

    Well, try it the way I suggested in post #1: 
    with both documents open, drag the layer of the Photoshop scan onto the open Adobe Illustrator document.
    (...and I promise not even to ask why you're doing that.  )

  • Why is Photoshop always adding 1 Pixel to y when i drag and drop Assets?

    When you drag and drop a external Image as a new layer into a photoshopdokument, there is always this one pixel from above (y+1) when placing.
    Is there a deeper sence behind this? I dont get that.
    Why cant Photoshop place it at coordinates 0/0 ?

    I had this problem on Windows 8.1.1 and iTunes 11.2.2.3
    To resolve it from within Itunes I did :  Edit, Preferences, Sharing.
    I took the tick out of "Share my library on my local network"
    Click OK.
    Closed iTunes/
    Reopened iTunes and I can drag and drop.
    I went back into Edit, Preferences, Sharing and put the tick back and clicked OK.
    Works fine now.

  • Drag and Drop Scrolling

    When typing in a text box in a web browser, such as blogger or Hotmail, when we try to drag and drop text or images from one location to another that is off-screen, the computer will not automatically scroll when the image is dragged to the bottom of the text box. We are forced to drag to the bottom, scroll down, drag to the bottom, scroll down and repeat until we have it where we want it. Is there an easier way to do this? We are new to Macs, and we never had this problem on our Windows PCs.

    try copying and pasting text
    highlight what you want press cmd+c then choose where you want it to start and press cmd+v
    Regards

  • Drag and Drop image is Duplicated

    Hi,
    In my code, I want to drag and drop an image from a list populated from a folder, and its information is populated from an xml file. Now, I can drag the image from the list and drop it in the container, However, when now, I want to drag around the dropped image, it is duplicated, an extra image is created in the canvas. So, if anyone can tell me how not to create an extra copy of the image in the new container (canvas) that it was dragged to.
    Here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    name="Drag and Drop Tutorial"
    creationComplete="init()"
    initialize="pictureService.send()">
    <mx:Script>
    <![CDATA[
    import mx.controls.Image;
    import mx.core.DragSource;
        import mx.core.IUIComponent;
        import mx.managers.DragManager;
        import mx.events.DragEvent;
        import mx.controls.Alert;
        import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    [Bindable] private var pictureData:ArrayCollection;
                private function resultHandler(event:ResultEvent):void{
                pictureData = event.result.data.image;
                private function faultHandler(event:FaultEvent):void{
                //code
    public function init():void
                // a mouseDown event will start the drag
          list.dataProvider = pictureData;
          //picture in the list is being dragged
           this.picture.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
         // accepting a drag/drop operation...
           this.area.addEventListener( DragEvent.DRAG_ENTER, acceptDrop );
           // handling the drop...
          this.area.addEventListener( DragEvent.DRAG_DROP, handleDrop );
             public function beginDrag( mouseEvent:MouseEvent ):void
          // the drag initiator is the object being dragged (target of the mouse event)
           var dragInitiator:IUIComponent = mouseEvent.currentTarget as IUIComponent;
           // the drag source contains data about what's being dragged
           var dragSource:DragSource = new DragSource();
           // Add the data to the object.
                   dragSource.addData(1, 'value');
                    // Create a copy of the coin image to use as a drag proxy.
                    var dragProxy:Image = new Image();
                    dragProxy.source = mouseEvent.currentTarget.source;
                    dragProxy.setActualSize(mouseEvent.currentTarget.width,mouseEvent.currentTarget.height)
         // ask the DragManger to begin the drag
         DragManager.doDrag( dragInitiator, dragSource, mouseEvent, dragProxy ); 
    public function acceptDrop( dragEvent:DragEvent ):void
           var dropTarget:IUIComponent = dragEvent.currentTarget as IUIComponent;   
          // accept the drop
       DragManager.acceptDragDrop( dropTarget );
      // show feedback
            DragManager.showFeedback( DragManager.COPY );       
         public function handleDrop( dragEvent:DragEvent ):void
          var dragInitiator:IUIComponent = dragEvent.dragInitiator;
          var dropTarget:IUIComponent = dragEvent.currentTarget as IUIComponent;
            if(dragEvent.dragSource.hasFormat("items"))
              var items:Array = dragEvent.dragSource.dataForFormat("items") as Array;
            var img:Image = new Image();
            img.x=dragEvent.localX;
            img.y=dragEvent.localY;
            img.width = 50;
            img.height=50;
            img.source="assets/" + items[0].id + ".jpg";
            img.addEventListener(MouseEvent.MOUSE_MOVE,beginDrag);
            area.addChild(img);
       else
       dragEvent.dragInitiator.x=dragEvent.localX
       dragEvent.dragInitiator.y=dragEvent.localY
    ]]>
    </mx:Script>
       <mx:HTTPService id="pictureService"
    url="data/data.xml"
    result="resultHandler(event)"
    fault="faultHandler(event)"/>
    <mx:DataGrid id="list" width="238" height="200" y="26" x="10" labelField="src" dragEnabled="true"
    dataProvider="{pictureData}">
      <mx:columns>
      <mx:DataGridColumn dataField="id" id="code">
      </mx:DataGridColumn>
      <mx:DataGridColumn id="picture" draggable="true" >
      <mx:itemRenderer>
      <mx:Component>
      <mx:Image source="assets/{data.id}.jpg"  />  
      </mx:Component>
      </mx:itemRenderer>
      </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    <mx:Canvas id="area" x="266" y="28" width="436" height="401" backgroundColor="#c0c0c0"
    dragDrop="handleDrop(event)" >
    </mx:Canvas>
    </mx:Application>

    your handleDrop is called twice. you have assigned this eventlistener twice - one in init function and one in inline.
    remove one and it works.

  • Cannot drag and drop image from Safari to Desktop - drop location is unavai

    Drag and drop an image from Safari 2.0.4 to the Mac OS X 10.4.10 Desktop does not save it. Console says:
    "drop location is unavailable"
    Control click over the image and "Save Linked File to the Desktop" works as expected.
    Any hint most welcome. Thanks.

    Why not simply adjust the link for the image in the Links palette? Certainly could be contained in an action, if need be for duplicating and exporting multiple images...
    Mylenium

  • Drag and Drop and Image Size

    I need to be able to drag and drop images but I need them to be a certain size when I drag them out of an Aperture project. For various reasons, I don't want to use the export function. Only drag and drop will be efficient for the workflow that I"m planning. Problem is, the pixel dimension is not wide enough when I test it by pulling an image on to the desktop.
    My ultimate goal is drag them, sized and ready to go, and drop them onto a web browser upload page. I don't want to fumble with the extra steps of exporting them to another folder on the desktop and then upload the images from that folder to the browser.
    So does anybody know how or if it's possible to control the drag and drop SIZE /DIMENSION of an image?

    The drag and drop size is determined by your preview settings. What actually gets "dragged & dropped" is the preview, not the master file. You can control the quality and size of the preview in the Aperture preferences.

  • I am unable to drag and drop image files in a JAVA supposrted site. I have all the lastest versions of softwarte here - everything is up to date.

    I am no longer able to drag and drop image files int this JAVA supported site. It had always worked flawlessly in the past.
    I would open the site, go to Send Files, allow access, fill out the fields and then drag and drop my image files. Now I can only use the ADD (+) button to do so.
    I have the latest versions of OS-X Lion and JAVA installed on my computer
    http://www.clippingprovider.com/CP_II_EU/Welcome.html

    This is the Tech Sheet on the subject:
    Photoshop Help | Managing paths
    It contains this item under Manage Paths:
    When you use a pen or shape tool to create a work path, the new path appears as the work path in the Paths panel. The work path is temporary; you must save it to avoid losing its contents.
    Ok, the red you referred to is a Stoke you added. Then QuickMask is not involved.

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

Maybe you are looking for

  • ?letterboxing issue.. probably a newbie question, sorry

    Sorry if this has been discussed before. Very new to macs (former PC user) I have a MacMini with 10.4.xx (cant remember the next #) with 2g ram and intel processor. Making a slideshow in IMovie and buring in IDVD. I have made two different slideshows

  • Calling a method from custom Class in WD Application

    Hi, I wrote a piece of code in method SEARCH for my WD Application. Instead of diectly callling the method I would like to create a class and then call the method. How do we proceed? Do we use SE24 first or can we start creating class from WD applica

  • Nokia E72 - Recharging battery

    Hi all, I have just bought this Nokia E72 (from an authorized dealer, I must add here) about two days ago. I have used it until the battery went empty completely and the phone switched off itself. The with the phone switched off, I started recharchin

  • Unix Executable files within apple programs, problem???????????

    Sometime ago i was using logic pro 7,and saving my project folders on an external drive,,,all of my folders turned into EXE files and couldnt be read,, Now ive wiped my internal drive,,reloaded the install disks,,used disk warrior, If i highlight any

  • Database instance for XI

    Why does XI need separate database instance. Can I use a existing database to write its schema and data and just make oracle client from XI host to talk to the oracle database. Because I don't need another database to make the XI box bigger. I want t