Image drag and drop

Hi all,
I am writing a program, with 2 JPanels, the first one is with 4 images (JLabel), I need to drag the images and drop on second JPanel. When the image is dropped, it should also allow dragging to desired position in that JPanel(through MouseMotionListener).
I read a lot of examples about DnD, TransferHandler, I knew how to implement drag and drop between JPanels, but still have no idea how to implement both. Can anyone advise a brief idea how can I do.
Thank you so much....

Read this: http://forum.java.sun.com/thread.jsp?forum=57&thread=516990
It shouldn't be a big streach to convert the panel to an image.
If you have problems after trying this out, repost.

Similar Messages

  • 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

  • LR v1.0 - Qimage interaction (no image drag and drop)

    I am able to drag and drop image files from Bridge-CS2 to Qimage templates for printing (I am also able to drag images from Bridge2-CS3 beta to Qimage.)
    I have NOT been able to drag the same image files from LR v1.0 to Qimage (the cursor shows the image being dragged until leaving the LR window, then the cursor turns to a slash-circle - "NO").
    Anyone had success, or similar problems?
    Thanks.
    Joe

    Try using Qimage in export actions and export to it.

  • Preview image drag and drop from offline master

    I've always loved the ability to drag and drop previews even though the master is offline.
    Why can't i do this in ap3?
    It seems to be hit or miss, mostly miss for me.
    It's great to take home a library of offline masters and quickly mock-up layouts using ap1-2
    Any solutions?

    You started the thread off basically telling everyone that drag out of the previews didn't work if the masters were offline in Aperture 3. Rereading your posts I don't really see a question in there anywhere.
    This post is a support question. It is not my intention to make broad statements that this behavior is widespread for every ap3 user. The apple support forums are radically different and I'm a bit confused as to how this new system works.
    Frank Caggiano wrote:
    Well have you run any of the basic trouble shooting tips show at  http://support.apple.com/kb/HT3805 for s start?
    Now if you're interested in trying to get this fixed I'd hold off on going into the library and maybe give us the backstory. I still don't know what equipment you're on or how this all started.
    I have done all those steps including using disk utility to repair permissions.
    This behavior is consistent across 3 computers with their own unique ap3 licenses:
    2011 17" MacBook Pro
    2010 Mac Mini
    2010 15" MacBook Pro
    I've upgraded all computers to Aperture 3 5 months ago and I've seen this issue ever since.

  • Drag and Drop Image into JTable

    I was wondering if anyone can tell me if it is possible to have an image dragged and dropped into a JTable where the single image snaps to multiple columns and rows?
    Thank you.

    Can anyone point me in the right direction for doing the following:
    Drag and drop an image into a JTable where the single image snaps to multiple columns and rows.
    Thanks.

  • How to add imge to another image box by drag and drop

    Hi all
       i am using flex 3.and my problem is to drag an image and drop to another box or image what ever.just need to display the copy of the source image in its drop target.is it possible drag an image?if it is then how?please help me.
    thanks and regards

    there are examples of image dragging and dropping here:
    http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/
    i imagine for your problem, you want the final example, and instead of passing across an integer value, you want to pass across the image source.

  • Embedded drag and drop not working

    Hi,
    Hoping someone can help as have got 90% of the way through a project and hit a wall at the final (end-of-level-baddie) problem.
    I'm currently embedding old AS2 activities (build by a second party - now not operating/contactable) into a new AS3 menu system.
    Most of them I've managed to port across and embed without issue. Unfortunately embedding the drag and drop activity is proving to be, for want of a better phrase, a complete drag.
    I've managed to decompile the code, so have put a few trace statements in to find out what might be going wrong. Looking in the collision detection part of the code, the problem appears to be that when the activity is embedded, although the index of the drag clip is returned fine with its corresponding index number, the index of the drop clip is returned as 'undefined'.
    The activity works fine in a standalone flash player, with both indexes returning their respective numbers. However not so when it's embedded.
    I'm guessing that this is a levels issue, but is there any easy way that I can force the AS2 drag and drop game to act as self-contained and ignore its parent holding clip?
    Thanks in advance

    Hi kglad,
    Thanks for replying (you've helped me out before :-)  )
    A search of the classes reveals only one mention of getDepth() on a text field, which is irrelevant at the mo (as the engine's just creating image drag and drops)
    The main activity stage is created by an EngineClass (which drives all the activities I've been adapting, but wasn't a problem with less layer critical ones).
    There are three lines I can see where the activity stage is created using 'getNextHighestDepth()'
    this.mWhere.createEmptyMovieClip("activity_mc", this.mWhere.getNextHighestDepth());
    this.mWhere.createEmptyMovieClip("activityMask_mc", this.mWhere.getNextHighestDepth());
    this.mWhere.createEmptyMovieClip("toolbars_mc", this.mWhere.getNextHighestDepth());
    All the drags and drops are then created within this activity_mc. When I run the activity as standalone (where it works), and drag an item onto a drop zone, the traces I set up on the Drag and Drop items report back the following:
    DragObject: _level0.activity_mc.container_mc.dropItem2.dropSkin.greyBorder.whiteBG
    DropArea: _level0.activity_mc.container_mc.dropItem2.dropSkin.greyBorder
    When I run it embedded in the AS2 wrapper it then fires back the following after an attempted drop:
    DragObject: undefined
    DropArea: undefined
    ...and the item refuses to drop on the dropzone, returning to where it came from.
    The tiny amount of knowledge I have makes me (probably mistakenly) assume that if I could place the activity_mc layer on root, then everything would be contained within the embedded clip and the layering wouldn't go so wonky. But in reality I've got no idea! To make matters worse, the original drag and drop activity is itself inside another as2 wrapper which contains some navigation buttons...

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

  • Drag and drop does not work with multiple images

    if i try to drag and drop more than one image, nothing happens, no activity at all. i think i had this problem on another computer and it had something to do with the fonts. i can not remember exactly thanks iphoto 6

    Go to font book and use it to make sure the helvetica font is enabled - disable and re-enable it if necessary.
    Regards
    TD

  • Is it possible to add a drag and drop interaction to a called image in a contaner?

    this forum is my last hope =( i know how to do drag and drop
    by itself, however right now i have my flash set up so that when
    you click BUTTON A, it does:
    on (release) {
    _root.gotoAndPlay ("photo1");
    once it goes to "photo1", on that frame, i wrote actions on
    the frame to:
    var myMCL:MovieClipLoader = new MovieClipLoader ();
    myMCL.loadClip ("images/heritageBrochureFront.png",
    "container_mc");
    stop();
    so it loads my picture into the container. my question, once
    the image it in the container, can i add drag and drop interaction
    to it? i would really love an easy solution.

    yes. there are a couple of ways to do this.
    one is the create a child movieclip of container_mc and load
    into that child and assign your onPress/startDrag
    onRelease/stopDrag methods to container_mc.
    a second way is to load into container_mc (like you're
    currently doing), wait until loading is complete (ie, use the
    onLoad method of an mcl listener) and then assign your methods to
    container_mc.

  • Drag and Drop - Drag Image

    I'm using the Flex DragManager in an AdvancedDataGrid with
    HierarchicalData to allow the user to drag and drop tree nodes to
    re-order them. It is working fine. The problem I am having is with
    the drag image. The drag image does not always show up. It seems
    like it will appear for one drag and drop. Then if I try to drag
    another tree node I do not get the drag image there is just a line
    to show I'm dragging something.
    When I say drag image I mean the faded image of the text of
    the tree node which appears as I drag the tree node.
    I am using the following properties on the AdvancedDataGrid
    to enable drag and drop:
    dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
    Now if set dragMoveEnabled="false" then I do get a drag image
    everytime. But I need move the tree nodes around not copy them so I
    need dragMoveEnabled="true".
    Thank you

    I'm using the Flex DragManager in an AdvancedDataGrid with
    HierarchicalData to allow the user to drag and drop tree nodes to
    re-order them. It is working fine. The problem I am having is with
    the drag image. The drag image does not always show up. It seems
    like it will appear for one drag and drop. Then if I try to drag
    another tree node I do not get the drag image there is just a line
    to show I'm dragging something.
    When I say drag image I mean the faded image of the text of
    the tree node which appears as I drag the tree node.
    I am using the following properties on the AdvancedDataGrid
    to enable drag and drop:
    dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
    Now if set dragMoveEnabled="false" then I do get a drag image
    everytime. But I need move the tree nodes around not copy them so I
    need dragMoveEnabled="true".
    Thank you

  • JQuery drag and drop image order with save to database?

    We have a property image gallery on our website and a CMS that allows us to add/edit images in the gallery.
    Image file names are stored in a database table:
    imgID (int)
    propertyID (int)
    imgfilename (nvarchar)
    displayorder (int)
    Images are displayed in order of "displayorder" but we'd like to be able to drag and drop the order in our CMS and have this update the database table with the correct display order.
    We found this jQuery solution but it doesn't appear to work, although descriptively it's exactly what we're trying to acheive:
    http://halnesbitt.com/blog/2010/08/05/save-order-with-jquery-ui-sortable-and-aspaccess
    Can anyone advise a similar script or solution?  We're using Classic ASP and MSSQL.
    Thank you.
    NJ

    Hi,
    Not looking at any code you have an upload button for the video and an insert for the form. So both forms are independent of each other it looks like, thats why when you do one you only get that info and when you do the other you only get the other info. You should just make one form with the uploader included. Make one form with all the fields included (movie name, movie page, movie description, movie file) after the form is completed then select the file field and go to...
    Server Behaivoirs, Developer Toolbox, File upload, upload file. Follow the widgets.

Maybe you are looking for