Drag and drop problem On Mac OS

Hi guys,
I have a java applet code running well on windows and Linux.it consists of dragging files from a JFileChooser and dropping them to a JTable.
But the drag and drop feature doesn't work on Mac OS platforms.I don't get any errors log .simply files don't get dropped to JTable.
In my code i simply use a TableTransferHandler registered on JTable and then setDragEnabled() for JFileChooser.
What can i do to make my code run correctly on Mac OS ?
thanks for helping

For those interested, I got drag and drop working on the Mac. I got some help on the Apple-Dev forums, but basically, if you want to do your own drag and drop on the Mac OSX, you must have your transfer handler support StringFlavor. If it doesn't, it will not work.

Similar Messages

  • Drag and drop problem on Lion... doesn't work

    Hi,
    I have had a drag and drop problem since I installed Lion on my computer.  I grab a file and by the time i try to drop it on a folder it is not released.  This happens in all programs and it is really annoying,  finder, iphoto, mail, you name it.
    I've tried repairing disk permissions directly from lion and then from the repair disk partition and it has been no good.
    Any ideas???
    I have a MBP 15 in, 2.8 ghz intel core 2 duo.  4 gb ram.
    And hey, since i installed lion computer is soooooooooooo slow, any tips will be highly appreciated.

    drag and drop doesnt work at all, no matter what i try to do it doesnt work.
    on desktop i grab a file and then try to drop it on a folder and doesnt drop.
    on mail i grab an e-mail and try to place it on a folder and it doesnt drop.
    i movie i select some photos, try to drag them to the project area and they dont drop i have to copy/paste in order to transfer them.
    itunes i grab a file from my music library and try to drop it to a playlist and it doesnt drop
    it is really really annoying.
    any ideas????

  • Drag and drop problem from wizard inside another drop

    I am using JDK 1.5.0_11 Swing.
    I am facing a Drag and Drop problem which is described below:
    A drag and drop operation invokes a wizard, from which another wizard is invoked. Within one of the panels of this 2nd wizard, I am trying to do a drag and drop from a JTextarea to a JTree node, but am NOT able to. I am not getting any exceptions. I have written a transfer handler for the JTree node to handle the text transfers from a JTextArea. When I try to do a drag and drop from a JTree node to another JTree node I'm getting the 'InvalidDNDOperation: drag and drop in progress' exception.
    When the 2nd wizard is invoked directly, I am able to do the drag and drop from JTextArea to a JTree node and also from a JTree node to another JTree node.
    I tried spawning a new thread for the 2nd wizard, but am still unable to initiate drag and drop.
    Should I be spawning a new thread for the 1st wizard?
    Message was edited by:
    sbandyop

    Please post Swing questions in the Swing forum: http://forum.java.sun.com/forum.jspa?forumID=57

  • Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

    In the attached file, I have a series of symbols that have a drag and drop command to change colour at different sections of a bullseye, and that are also text editable (html).
    However, some of the symbols get stuck and will not be moved after moving once or at all, and some get stuck once their text has been edited.
    I have poured over the code and it appears to be the same for each symbol - can anyone explain as to why this is happening?
    I also cannot now edit the text properly on the ipad (it is really fiddly to change between different symbols to edit their text -- is there maybe a better way to do this? A button to change between symbols to then edit their text, can you help with this too?)
    THANK YOU SO MUCH!!!
    File here:
    https://www.dropbox.com/s/g71gnfichjgyehn/NEW%20RISK%20RADAR.zip

    Hi, I think I undertsand what you mean now, so the code is as below, btu I am not sure what a handler is? but some of my risks still get stuck once the text has been changed on them:
    // Use for loop for attr
    // deleted  yepnope since you load with scropt loading
    // added pos for each symbol so we can replace them there.
    document.ontouchmove = function(e) {
            e.preventDefault();
    var risk = ;
    var Pos = [
    {'x':-9,'y':806},
    {'x':27,'y':854},
    {'x':72,'y':894},
    {'x':71,'y':934},
    {'x':231,'y':811},
    {'x':231,'y':853},
    {'x':231,'y':894},
    {'x':231,'y':934},
    {'x':388,'y':811},
    {'x':388,'y':852},
    {'x':388,'y':893},
    {'x':388,'y':934},
    {'x':543,'y':811},
    {'x':543,'y':853},
    {'x':543,'y':893},
    {'x':543,'y':934}
    var myText = ; 
    for (i=0;i<risk.length;i++){
    sym.getSymbol(risk[i]).$(risk[i]).attr("contenteditable",true);
    sym.$('Quadrant_text').attr("contenteditable",true);
    sym.$('Quadrant1_text').attr("contenteditable",true);
    sym.$('Quadrant2_text').attr("contenteditable",true);
    sym.$('Quadrant3_text').attr("contenteditable",true);
    // apply the draggable JQuery UI plugin to the MyDraggableSymbol symbol on your stage
    sym.$('Risk1').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk1").stop("Initial");
      sym.setVariable("symName","Risk1");
    //adding for risk3_orange similarly add for other symbols
    sym.$('Risk1').draggable();
    sym.getSymbol('Risk1').$("Risk1").bind('click tap',function(ev) {
         sym.$('Risk1').draggable('disable');
    }).unbind('dblclick tap',function(ev) {
         sym.$('Risk1').draggable('enable');
    sym.$('Risk2').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk2").stop("Initial");
      sym.setVariable("symName","Risk2");
    //adding for Risk2 similarly add for other symbols
    sym.$('Risk2').draggable();
    sym.getSymbol('Risk2').$("Risk2").bind('click tap',function(ev) {
         sym.$('Risk2').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk2').draggable('enable');
    sym.$('Risk3').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk3").stop("Initial");
      sym.setVariable("symName","Risk3");
    //adding for Risk3 similarly add for other symbols
    sym.$('Risk3').draggable();
    sym.getSymbol('Risk3').$("Risk3").bind('click tap',function(ev) {
         sym.$('Risk3').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk3').draggable('enable');
    sym.$('Risk4').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk4").stop("Initial");
      sym.setVariable("symName","Risk4");
    //adding for Risk4 similarly add for other symbols
    sym.$('Risk4').draggable();
    sym.getSymbol('Risk4').$("Risk4").bind('click tap',function(ev) {
         sym.$('Risk4').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk4').draggable('enable');
    sym.$('Risk5').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk5").stop("Initial");
      sym.setVariable("symName","Risk5");
    //adding for Risk5 similarly add for other symbols
    sym.$('Risk5').draggable();
    sym.getSymbol('Risk5').$("Risk5").bind('click tap',function(ev) {
         sym.$('Risk5').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk5').draggable('enable');
    sym.$('Risk6').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk6").stop("Initial");
      sym.setVariable("symName","Risk6");
    //adding for Risk6 similarly add for other symbols
    sym.$('Risk6').draggable();
    sym.getSymbol('Risk6').$("Risk6").bind('click tap',function(ev) {
         sym.$('Risk6').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk6').draggable('enable');
    sym.$('Risk7').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk7").stop("Initial");
      sym.setVariable("symName","Risk7");
    //adding for Risk7 similarly add for other symbols
    sym.$('Risk7').draggable();
    sym.getSymbol('Risk7').$("Risk7").bind('click tap',function(ev) {
         sym.$('Risk7').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk7').draggable('enable');
    sym.$('Risk8').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk8").stop("Initial");
      sym.setVariable("symName","Risk8");
    //adding for Risk8 similarly add for other symbols
    sym.$('Risk8').draggable();
    sym.getSymbol('Risk8').$("Risk8").bind('click tap',function(ev) {
         sym.$('Risk8').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk8').draggable('enable');
    sym.$('Risk9').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk9").stop("Initial");
      sym.setVariable("symName","Risk9");
    //adding for Risk9 similarly add for other symbols
    sym.$('Risk9').draggable();
    sym.getSymbol('Risk9').$("Risk9").bind('click tap',function(ev) {
         sym.$('Risk9').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk9').draggable('enable');
    sym.$('Risk10').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk10").stop("Initial");
      sym.setVariable("symName","Risk10");
    //adding for Risk10 similarly add for other symbols
    sym.$('Risk10').draggable();
    sym.getSymbol('Risk10').$("Risk10").bind('click tap',function(ev) {
         sym.$('Risk10').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk10').draggable('enable');
    sym.$('Risk11').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk11").stop("Initial");
      sym.setVariable("symName","Risk11");
    //adding for Risk11 similarly add for other symbols
    sym.$('Risk11').draggable();
    sym.getSymbol('Risk11').$("Risk11").bind('click tap',function(ev) {
         sym.$('Risk11').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk11').draggable('enable');
    sym.$('Risk12').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk12").stop("Initial");
      sym.setVariable("symName","Risk12");
    //adding for Risk12 similarly add for other symbols
    sym.$('Risk12').draggable();
    sym.getSymbol('Risk12').$("Risk12").bind('click tap',function(ev) {
         sym.$('Risk12').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk12').draggable('enable');
    sym.$('Risk13').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk13").stop("Initial");
      sym.setVariable("symName","Risk13");
    //adding for Risk13 similarly add for other symbols
    sym.$('Risk13').draggable();
    sym.getSymbol('Risk13').$("Risk13").bind('click tap',function(ev) {
         sym.$('Risk13').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk13').draggable('enable');
    sym.$('Risk14').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk14").stop("Initial");
      sym.setVariable("symName","Risk14");
    //adding for Risk14 similarly add for other symbols
    sym.$('Risk14').draggable();
    sym.getSymbol('Risk14').$("Risk14").bind('click tap',function(ev) {
         sym.$('Risk14').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk14').draggable('enable');
    sym.$('Risk15').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk15").stop("Initial");
      sym.setVariable("symName","Risk15");
    //adding for Risk15 similarly add for other symbols
    sym.$('Risk15').draggable();
    sym.getSymbol('Risk15').$("Risk15").bind('click tap',function(ev) {
         sym.$('Risk15').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk15').draggable('enable');
    sym.$('Risk16').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk16").stop("Initial");
      sym.setVariable("symName","Risk16");
    //adding for Risk16 similarly add for other symbols
    sym.$('Risk16').draggable();
    sym.getSymbol('Risk16').$("Risk16").bind('click tap',function(ev) {
         sym.$('Risk16').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk16').draggable('enable');
    sym.getSymbol("Drop").$('Outer').droppable(
    sym.getSymbol("Drop").$('Middle').droppable(
    sym.getSymbol("Drop").$('Target').droppable(
    sym.$('resetBtn').click(function(){
      sym.$('Quadrant_text').html('Quadrant');
      sym.$('Quadrant1_text').html('Quadrant');
      sym.$('Quadrant2_text').html('Quadrant');
      sym.$('Quadrant3_text').html('Quadrant');
    for (i=0;i<risk.length;i++){
      sym.$(risk[i]).css({"left":Pos[i].x,"top":Pos[i].y,"position":"absolute"})
      sym.getSymbol(risk[i]).stop(0);
      sym.getSymbol(risk[i]).$(risk[i]).html("Challenge");
    But is still doesn't work,
    Subject: Re:  Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

  • [svn] 3336: Fix an AIR drag and drop problem.

    Revision: 3336
    Author: [email protected]
    Date: 2008-09-24 12:24:27 -0700 (Wed, 24 Sep 2008)
    Log Message:
    Fix an AIR drag and drop problem.
    QE: YES
    Doc:
    Checkintests: Yes
    Reviewer: pfarland
    Bugs: SDK-17006
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17006
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/NativeDragManage rImpl.as

    Update 2, if it can help someone:
    Finally I don't manage the drag and drop by myself using
    DragManager.doDrag(...). Why? Because doing so if the user clicks
    on the scrollbars, on the datagrid header or on an empty row, it
    triggers the drag start and that is ugly. By letting Flex managing
    the drag and drop process, this doesn't append. BUT I was unable to
    use a custom proxy image then. Until I found this article:
    http://www.dgrigg.com/post.cfm/11/03/2006/DataGrid-Drag-Image
    The trick is:
    1) save the mouseX and mouseY using the mousedown event.
    2) override dragImage(), as the article says, to create your
    custom proxy, attaching to it a FlexEvent.UPDATE_COMPLETE event,
    saving it to a class variable and returning it.
    3) When you receive the FlexEvent.UPDATE_COMPLETE event, you
    update the proxy position (that is saved in a class variable) using
    the saved mouseX and mouseY and you remove the listener to the
    event:
    When you drop the proxy, you access the dragged items in :
    event.dragSource.dataForFormat("items")
    Hope this helps, I spent lot of time trying to resolve this
    issue! Now it works perfectly! :-)

  • Drag and drop problem using  NW04 SPS 19

    Hi,
    we have a problem using drag and drop between two input fields. If i use this functionality i get after some minutes a message "A script on this page is causing IE to run slowly. If it continues to run, your computer may become unresponsive. Do you wan't to abort the script?"
    Any idea to solve the problem?
    If i try the same functionality on NW04s - it works fine.
    Thanks in advance
    Stefan

    closed

  • Drag and drop problem

    I have iTunes 10.01.22.
    I have a folder on my computer, the folder contains some MP3's of an album. Now normally I can drag and drop the album folder into iTunes and whatever amount of songs are in that folder are then added and shown in iTunes library.
    The album folder I am having a problem with has 2 MP3 tracks in it. For some reason or other, I cannot get one of the songs to add to the library (the other song shows up correctly in iTunes). I have tried dragging and dropping the song that won't add separately, but it still does not get added.
    I've checked and its definitely an MP3.
    I was wondering if anyone has had this problem before and if so did you manage to solve it.
    I would appreciate any help and suggestions that you might be able to give me.
    Thanks in advance.

    I still haven't found a solution (apart from using the workaround I mentioned earlier).
    I tried today to drag and drop a mp3 into iTunes and I have the same problem with that particular mp3, strange though how it doesn't affect all mp3's I try to drag and drop.
    Has anyone else experienced this problem?

  • Drag and Drop Problem 3.0.1

    Hi,
    I upgraded from 3.0 to 3.0.1.
    I modified a form using the Drag and Drop Layout.
    On "Next" session the item's names are modified
    blank char to"%20", "à" to "%C3%A0"
    for example
    prod id --> prod%20Id
    Località-->Localit%C3%A0
    Has anybody hit this problem?
    Thanks in advance.
    Costantino

    Hi,
    i applied patch set p6113844_10203_GENERIC.zip
    and all works fine
    Costantino

  • Drag and drop from other mac didnt work

    i tried dragging my garage band app from another household leopard mac because when i upgraded my macbook to leopard, it didnt come with garage band
    anyway, i dragged and dropped the app over and at first i couldnt get the loops to work, but i found a solution to that on a website
    now, there are 0 "software instruments" where are they and how do i get them back?

    when the customize button appears during the install process, choose it and select only GB and any support files you want to install

  • Windows 7 64bit iTunes 11.1.4 Up Next Drag and Drop Problem

    OS: Windows 7 64bit
    iTunes version; 11.1.4
    Problem: In the normal iTunes window dragging and dropping songs in the Up Next menu gives no real-time feedback of items being moved or the list being scrolled. If I attempt to drag and drop then the window updates itself as if it had scrolled, but I get no visual feedback during this process.
    I can confirm that Up Next operates as expected while using the Mini Player (either reduced or expanded), but the main window does not.

    Doublechecking. Do you still get that particular issue if you update to iTunes version 11.1.5.5.

  • [Ask] Drag and Drop Problem

    Hello all, i'm a new member here, and i just installed Adobe Flash Professional CS6 on my computer. I want to make a simple quiz with drag and drop feature in it. I want to drag Square A (Square_1) from the first position marked with "STAR" into the white square (Target_1), i've already made the script, but everytime i drop the square A on the white square (Target_1), it won't fit exactly on the white square (Target_1). I use this script to make drag and drop with target working :
    var startX:Number;
    var startY:Number;
    Square_1.addEventListener(MouseEvent.MOUSE_DOWN, pickMe);
    Square_1.addEventListener(MouseEvent.MOUSE_UP, dropMe);
    function pickMe(event:MouseEvent):void {
        event.target.startDrag(true);
        startX = event.target.x;
        startY = event.target.y;
    function dropMe(event:MouseEvent):void {
        event.target.stopDrag();
        var myTargetName:String = "target" + event.target.name;
        var myTarget:DisplayObject = getChildByName(myTargetName);
        if (event.target.dropTarget != null && event.target.dropTarget.parent == Target_1){
            event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickMe);
            event.target.removeEventListener(MouseEvent.MOUSE_UP, dropMe);
            event.target.buttonMode = false;
            event.target.x = Target_1.x;
            event.target.y = Target_1.y;
        } else {
            event.target.x = startX;
            event.target.y = startY;
    Any help would be appreciated. Thank you.

    if A and that white square both had reg points in their centers or both at the upper left, you would not have a problem.  as it is with the white square with upper left reg point and A with center reg point, you can use:
    event.target.x = Target_1.x+Target_1.width/2;
            event.target.y = Target_1.y+Target_1.height/2;
    but it would be better to use consistant reg points throughout your app.

  • [SOLVED] Thunderbird and 'drag and drop' problem

    Hi all,
    after an pacman (-Syu) upgrade, my thunderbird dont move message with "drag and drop". when i move mouse to left panel (one message), the cursor of the "drag and drop" disappears, but when i try to move two (or more) messages, works perfectly
    what happen?
    thanks!
    EDIT: after a gtk2 update, this problem disappears. thanks all!!!

    Yes, there is another thread on this, and a bug report. Also, about two hours ago, a gtk2 2.10.6-2 was submitted. We'll see if that fixes the issue, when the mirrors have synced

  • Drag and drop problems in iPhoto 6

    iPhoto won't allow me to drag and drop groups of pictures from my library to my albums. Only one photo at a time. This is getting very frustrating, anyone know why? Is there anything I can do? Thanks in advance.

    Michelle --
    Here's a great FAQ by Kurt Lang on fonts in OS X.
    As one who tried "cleaning out system fonts" a couple years ago,
    and completely disabled the most important ones, this FAQ saved me from further distruction.
    http://www.jklstudios.com/misc/osxfonts.html

  • Drag and drop problems in 10.7.2

    Hello!
    I´ve a MacBook pro 13" with stock 10.7.2, when I drag and drop several files, the shadow of the files freeze on the screen, and there´s no way to remove them other than force quit the Finder. It´s quite annoying.
    Any idea on this?
    Best Regards.
    Fernando

    Just found a reference to a work around to the issue by putting the macbook to sleep & waking it.  Worked a treat !
    This makes it usable again.  Which is lucky as I was preparing to see how far I could toss the macbook !
    Suppose I'll need to wait for a patch.

  • Drag and Drop Problem, Drag Enter not getting called - Need Help

    While doing drag and drop on the nodes of JTRee dragGestureRecognized method is getting called,
    but after that no method is getting called, not even dragEnter.
    I am using TreePath as the Transferrable Object.
    public void dragGestureRecognized(DragGestureEvent gestureEvent)
               Point point=gestureEvent.getDragOrigin();
              TreePath path=sourceTree.getPathForLocation((int)point.getX(),(int)point.getY());
               transferable = new TransferableTreePath( path );
              source.startDrag(gestureEvent,DragSource.DefaultMoveNoDrop, transferable, this);
              System.out.println("Drag Gesture Recognized method over");
         }

    you're most welcome, Jon, and it's this board, which 'animates' me to do it that way and this way, and find out the differences..
    but, indeed: the 'settings' of a photo should be 'accessible' in both ways..
    ' cause, in MY workflow in iMHD6 or FCE, I FIRST import the video, and more important: the audio-track, which I 'spice up' with additional footage, as stills...
    .. but I've never done that in iM08, which is for my projects still in 'experimental use'...- (I LOVE those picture settings, de-saturating clips etc....), I get used to the many audio-layers in FCE ...
    ... and: lately, tought some iMovie-beginners (a photographer and a print-designer), with zil background knowledge of any iMovie version, the first steps with iM08... they want to use it to 'glue' some impressions together, they shoot while doing their photo-jobs.. and they were very impressed and excited!... +sooooo easy+ ... yepp, the User Experience IS breathtaking, awesome, groundbraking

Maybe you are looking for

  • Can't find Java Class

    I create Java Class from JDeveloper(version 9.0.4) and I open Oracle Form(Oracle Form Developer version 9.0.4) I set class path and builder class path complete but I can't import JAVA Class into Form. (Calling a web service from oracle appkication se

  • Time stamp of entry change?

    Is there any way to do an LDAP query and return those directory entries that have changed since a particular point in time?

  • Quits connecting to the internet(well kinda.....i think)

    after i have been web browsing for a bit and i click a link or try to go to another website, it wint go. the progress bar just moves one time and stops. to get it to connect again i have to log out and log back in. also, any other program that has to

  • Sound on Video doesn't work - sounds like data.

    I have the IPOD video 60GB. I have never been able to get the sound on my videos to work. The music works perfectly fine. The video and sound play fine in my Itunes, but the sound comes out like data on the ipod iteself. The video picture plays fine

  • Areaseries tooltip odd behavior

    I have a charting app that takes some generic Actionscript objects and unpacks them as charts.  The data is stored in a class with: public var point1:Object; public var point2:Object; Pretty straight forward and the app works fine except for the tool