Drag and drop parts of an image

Is there a way to display an image (such as a scanned page) and then have areas that can be dragged and dropped? For instance, suppose the scanned page has some text fields. I would like some of text fields in the scanned form to have boxes around them (perhaps a different color, perhaps marching ants) to indicate that they are fields of interest. I would like to be able to drag and drop one of those text fields onto another text field (probably on the right side of a split pane - this right panel is not a scanned image but a panel with real fields). I've seen information about dragging and dropping fields and images but not precisely this problem. Thanks for any help. I'm new to Swing and so am out of my league.

You want the user to select the area? Sure that can be done fairly simply. You want the app to automatically figure out what parts of an image are what? That's not simple at all.
Either way, it's not so much about swing as custom painting. Try checking this out:
http://www.jhotdraw.org/

Similar Messages

  • Drag and drop or place multiple images

    Hi,
    I'm working with Photoshop Elements 12 and would like to place multiple images (on different layers) in my project but am only able to place one image with the option "place" at a time. Is there a way to place multiple images at once?
    Other option that works in Photoshop is drag and drop mutliple files from my finder window (I'm a MAC user) into the open project. This would create multiple new layers with the imported files. This doesn't work for me with Photoshop Elements 12. When I drag and drop, new projects are created with the imported files.
    Hope someone has an answer for this. Thanks!

    Thanks LarryHN thats helpful. I've just tried that and the export 'current' option does indeed re-create the edited photo file with exactly the same file size at that shown in iPhoto. I did consider the 'current' option but was put off by the loss of the metadata with this option. But maybe the old drag and drop approach was the same?
    It's curious that the resulting file size from 'export, current' is different (larger in the example I just tried) in comparison to that resulting from 'export, jpeg' (with either the medium or high option selected).
    OK there seems to be a couple of reasonable options available although neither is as nice as the simple 'drag and drop' which used to be available!!! Why would they remove that option?? (and yet not for single files?).
    Thanks
    Tom

  • Trying to drag and drop edit-clicking on image in viewer...

    will not create a thumbnail that i can drop into the timeline. It just moves the image around in the viewer.
    Can anyone tell me what I'm doing wrong.
    Newbie here.
    Thanks to anyone who can help

    Your not dragging far enough. Hang onto the clip (from the viewer) until your over the video (or audio) track you want to drop it into. Also notice with way the cursor arrow is pointing. Down is overwrite. Right is insert.
    o| TOnyTOny |o

  • 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

  • I can't drag and drop from a data CD I recorded

    I recently burned some audiobooks files (in mp3 format) as data cd's in Toast 8.0.1. When I go to reload them back onto my 20" 2 Ghz Dual Core Intel I can't drag and drop the files directly into any folder while using the columns view in a finder window. I can do it if I drag onto the music folder and let it spring open down to the level of the folder. I also can drag the mp3's into iTunes and then into the folder. This is not CD related since I used several diff brands.
    I constantly update, backup, repair permissions, and do other maintenance so everything is up to date. I have noticed this behavior just since I started to use the program called Audiobook Builder. I am (and have always used) a non-admin user account. When this started a few months ago it seemed to go away with a restart, permission repair, or a logout but now it seems permanant. I checked user permissions on my home folder - I have not added any software since adding Audiobook Builder. Any idea's? I read something about trashing a com.apple pref but didn't try that.
    I suspect Audiobook Builder since it changes the permissions and filetype to the iTunes Audiobook filetype but have not seen anyone reference this.
    wes

    dj_paige wrote:
    While the programming of course could be done, the idea of a function that performs on original unprocessed images seems to violate the whole idea of what Lightroom was designed to be. At least that's my opinion. Of course, the idea that Adobe should do this programming for a relatively small number of people (you're one of a very few people to ask for this, that I have read) seems to be something that isn't going to happen.
    I agree, I can't see much reason for drag-and-drop to drag the unprocessed image - in other words, an image that isn't the one that you see when you drag and drop.  I can see that just filling this forum with "why the heck does it do that????????" posts.  I could be wrong, but I suspect that Adobe won't do that. 
    But if you do want to drag-and-drop the original unprocessed image, you can do it very easily now.  Right click the image, choose "show in Explorer", and then drag-and-drop from Explorer. 

  • Drag and Drop and save changes

    I am attempting to make an application that gives users a vast selection of icons that they can drag and drop into their own area which act as links to sites once they are double clicked but when they are clicked a single time they bring up a panel which shows the name of the website, a video about the website, a link to the website and a description of the website.
    Similar to this example except whenever any of the icons are single clicked they will bring up an information panel or link to the relevant site if they are double clicked:-
    http://demo.quietlyscheming.com/DragTile/DragDrop.html
    The drag and drop part is easy but I'm basically wondering what would be the best way to achieve this so that all data required is stored 'within' each icon? i.e. how can you store information such as a title and description within an icon so that it only appears once it is clicked and what would be the best possible component to use for the overall icon 'grid' and the icons themselves?
    This may sound silly but I've only just started using Flex and I'm simply looking for suggestions.

    Thanks my friend that helped me a lot and works well.
    I have another question for you, if I want to allow the users to SAVE the positions of the links they add how would I go about this? What I mean is if a user drags and drops some icons from a tilelist on the right hand side to their own tilelist in their own profile area how will I allow these tiles to still be saved in the same position if the user closes then reopens the application? I want each user to be abler to create their own list of links and then save these for future uses.
    Is there a simple way of achieving this or would it require a vast amount of coding?

  • Dojo drag-and-drop functionality - how to record?

    Hello,
    I am preparing some e-Tester scripts for our project. On one of the pages, the user has to choose some people as team members. This process is dynamic, and is developed and written using dojo (dojotoolkit.org) drag-and drop capabilities. Basically, the following happens:
    1) Initially, user has an empty "Search" form on the left and an empty "Team members" form on the right
    2) User enters some search string in the "Search" field on the left and presses the "Search now" button. The "Search" form will be filled with matching employees from the database.
    3) User moves some of the employees to the "Team members" field via drag and drop
    At the moment, I am having troubles recording the drag and drop part of the process. I tried recording all the events for the draggable sources and their targets, but it did not work (it seemed that the needed onmouse* events were recorded, but it still did not work). I also tried taking a snapshot of the needed page state, but it did not work since the drag and drop had nothing to do with the forms (dojo cuts parts of the html and pastes it elsewhere when drag and drop occurs). I even tried to fire the (not sure here) right events on the affected elements through PI, but it still did not work. Do you have any solutions, or maybe a suggestion I could try?
    You can download the dojo toolkit from http://dojotoolkit.org/downloads and do some testing on a standalone example (dojo/tests/dnd/test_dnd.html) there, it is using the same mechanics.

    That was the last thing I tried. I used FindElement to get access to the html elements dojo is "using" for drag and dropping. Then I FireEvent 'ed on those, trying to replicate the steps important for dojo DnD (drag and drop) - mostly onmouse* - but it just didn't work.
    It might have failed either because I played a wrong sequence of events (dojo has practically no information available on the event sequence needed for DnD, though it is clearly written which events are actually used) or e-Tester failing to keep its control on the elements properly (since dojo is actually changing those elements className a lot during DnD).
    So if anyone was able to steer dojos DnD like that successfully, maybe they could post a right sequence of events needed (should be something like: mousedown on the DnD item, mouseover on DnD target and mouseup on DnD item with - maybe - something inbetween).
    I would really appreciate it if someone could also explain me how exactly the the whole FindElement/get Object/do stuff with that Object business works. For example in my PI program I have:
    Set DnDSource = RSWApp.om.FindElement("DojoUnique12", "div", "id")
    So what I get is actually an object DnDSource - and abstraction - which is somehow tied to the html source the browser is looking at. How is this object connected to the html source? If I start FireEvent ing the DnDSource, what is actually happening every time? e-Tester searches the current html source each time we access DnDSource in some way, using the provided " it is a div with id=DojoUnique12" information? Or does it work in some other way? If some other property (e.g. className) of that div changes after some event, will DnDSource still reference it properly? What if its id changes? What if the element is cut and pasted elsewhere in the html source by the JavaScript at some point?
    Thanks for the help )

  • Drag and Drop with snap and response

    Ok, first of all I'm new to all of this as I'm just doing some parttime work. I'm trying to make a drag and drop game where the images (imported and made into movie clips with instance names "peg1 - peg7") are to be dragged onto targets (images, made into movie clips with instance names "targetpeg1-targetpet7").
    Here's my code and it comes up with two errors -
    ReferenceError: Error #1069: Property parent not found on builtin.as$0.MethodClosure and there is no default value.
    at Gametake1_fla::MainTimeline/fl_ReleaseToDrop()
    Please help!!! Thanks a bunch!
    Amy
    peg1.buttonMode = true;
    peg2.buttonMode = true;
    peg3.buttonMode = true;
    peg3.buttonMode = true;
    peg4.buttonMode = true;
    peg5.buttonMode = true;
    peg6.buttonMode = true;
    peg7.buttonMode = true;
    peg1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg3.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg4.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg5.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg6.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg7.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    event.currentTarget.startDrag();
    reply_txt.text = "Drag the image to its correct location"
    peg1.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg2.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg3.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg4.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg5.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg6.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg7.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    event.currentTarget.stopDrag();
    var myTargetName:String = "target" + event.target.name;
    var myTarget:DisplayObject = getChildByName("myTargetName");
    if (event.target.stopDrag != null && event.target.stopDrag.parent == myTarget){
        reply_txt.text = "Good Job!";
    } else {
        reply_txt.text = "Try Again!";
    function checkTarget(drag){
    if (drag.hitTest(targetpeg1)) {
    trace(drag+" has been dropped on greyCircle");
    } else {
    trace("you missed the target");

    use:
    peg1.buttonMode = true;
    peg2.buttonMode = true;
    peg3.buttonMode = true;
    peg3.buttonMode = true;
    peg4.buttonMode = true;
    peg5.buttonMode = true;
    peg6.buttonMode = true;
    peg7.buttonMode = true;
    peg1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg3.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg4.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg5.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg6.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    peg7.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    event.currentTarget.startDrag();
    reply_txt.text = "Drag the image to its correct location"
    peg1.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg2.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg3.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg4.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg5.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg6.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    peg7.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    event.currentTarget.stopDrag();
    var myTargetName:String = "target" + event.currentTarget.name;
    var myTarget:DisplayObject = getChildByName("myTargetName");
    if (event.currentTarget.dropTarget){
    if(event.currentTarget.dropTarget.parent == myTarget){
        reply_txt.text = "Good Job!";
    } else {
        reply_txt.text = "Try Again!";

  • Why I can't drag and drop from lightroom?

    Something I would expect from asset managment soft.  Am I missing something?

    dj_paige wrote:
    While the programming of course could be done, the idea of a function that performs on original unprocessed images seems to violate the whole idea of what Lightroom was designed to be. At least that's my opinion. Of course, the idea that Adobe should do this programming for a relatively small number of people (you're one of a very few people to ask for this, that I have read) seems to be something that isn't going to happen.
    I agree, I can't see much reason for drag-and-drop to drag the unprocessed image - in other words, an image that isn't the one that you see when you drag and drop.  I can see that just filling this forum with "why the heck does it do that????????" posts.  I could be wrong, but I suspect that Adobe won't do that. 
    But if you do want to drag-and-drop the original unprocessed image, you can do it very easily now.  Right click the image, choose "show in Explorer", and then drag-and-drop from Explorer. 

  • Creating a file that has drag and drop feature

    Hi,
    I'm working on a memory experiment and I want to create a file with a drag and drop feature.  I set an image as layer 1, and several images as layer 2. I would like to create a file where people can drag and drop on of the images from layer two onto a slot in layer one.  Ideally I would like it to remain stable if the place an image in the slot (meaning if they try to place one of the images from layer 2 into layer 1, I want it to allign perfectly).
    Help is greatly appreciated.
    Thanks.

    Check if using the Smart Guides snapping is something that could be useful for this. If the size of the objects are exactly the same the snapping is relatively easily when trying to put one object on the place of another. If the sizes are not the same then the center point indicator should be used as a target which require a little bit more effort. However enabling the Smart Guides is not a file feature, the user has to turn it on/off in Illustrator affecting all open documents.

  • How to drag and drop a swing component that can make it behave like Visio.

    1) How to make a JComponent drag and drop that behave like visio? I understand it's possible to drag and drop a text or image, but no idea on how to do that on JComponent. 2) After the JComponent is dragged and dropped, how to make the JComponent to be able to resize by the user using mouse 3) The area that the JComponent dropped should it be GrassPane, LayerPane, or ContentPane?

    I see where you're going. I'm drawn to Thunderbird because it puts open emails in separate tabs, which makes finding a particular open message easier than searching the task bar for an open outlook message. I do see your point that tab happy programmers, probably too young to remember how cool we thought drag and drop was when it first came out, don't think much of it. As with a lot of software, each programmer has a very limited view of how it their program should be used vs how it is actually used in the wild.
    People work in different ways. When I schedule an appointment with a client, this is often preceded by a series of emails related to whatever the client wants to discuss. I drag and drop those messages into the appointment window so that on the date of the appointment, I have a nice neat summary of the issues right there in the appointment window. I could use workarounds (save email and then attach to the appointment), but that's like a trip back to Windows 3.0 and it's, if I'm not mistaken, 30+ years later. I guess I'll continue to use Tbird for email and outlook for calendar, not my preferred solution, I'd like to flip MS the bird and cut all ties to outlook, and was hoping Tbird was the solution. Not yet, and perhaps not ever, based on your thoughts.

  • Drag and drop image into 2d Picture

    Hi All,
    I'm trying to implement a bit of "MS paint" magic for a customer's dialog. I want to be able to drag and drop into a 2d picture control. Ideally, I'd like to be able to move this around and resize it once it's there, but let's start with the first part - how to drag and drop from e.g. the desktop onto the 2d picture control. The rest is nice-to-have but unnecessary. 
    I've seen a clever example on here using a transparent path control, but that's not going to cut it here (I have other events linked with that picture box, e.g. right now I have a double-click event adding text to the image). 
    Thanks for any ideas... I've looked briefly into using the windows API (i.e. constructor nodes) but, there be dragons. 
    Solved!
    Go to Solution.

    pobrepablo1 wrote:
    Hi All,
    I'm trying to implement a bit of "MS paint" magic for a customer's dialog. I want to be able to drag and drop into a 2d picture control. Ideally, I'd like to be able to move this around and resize it once it's there, but let's start with the first part - how to drag and drop from e.g. the desktop onto the 2d picture control. The rest is nice-to-have but unnecessary. 
    I've seen a clever example on here using a transparent path control, but that's not going to cut it here (I have other events linked with that picture box, e.g. right now I have a double-click event adding text to the image). 
    Thanks for any ideas... I've looked briefly into using the windows API (i.e. constructor nodes) but, there be dragons. 
    Well, it is possible and I got it working . Let me clean it up, close my references, etc and I will post it. You will have to use the .net control though so hopefully that is ok. You could manage it for the labVIEW picture control with a mix of .net or winAPI to handle the drag and drop and see if it's over your picture control and then somehow get the path of the drag and load the path into the LabVIEW picture control. But, you may just want to stick with it all using the .net control
    CLA, LabVIEW Versions 2010-2013

  • Drag and Drop Image Sequence Issue

    Hello,
    Im having trouble dragging and dropping an image sequence folder. The folder drags in perfectly and the window even highlights but nothing happens. However when I go through FILE and IMPORT i do have success bringing in the image sequence as comp.

    > Is there anyplace to go to find known bugs with the program incase something like this arises in the future?
    We often post solutions to known issues on the Technical Support part of our site.
    I'll go ahead and write up a quick list of known issues in After Effects CC (12.2) with workarounds.
    Regarding the update that we thought we'd be releasing this week: We ran into a problem in which one of our fixes broke something else (which is why we do the testing), and we're having to redo some things. My current estimate is that the update will not come out this week but will come out some time within the next couple of weeks. Sorry for the delay, but we need to get this right more than we need to get it out fast.
    I'll post a summary of workarounds tomorrow to bridge the time between now and when the update is released.

  • Drag and Drop Image to native Application

    Hi there!
    I've spent quite a while now, searching for answers for my problem. I want to be able to drag and drop some JComponent - let's say a JPanel - to a native Windows application (like MS Office...). I know this is possible and I know that windows requires some special Image format (like DIB or Bitmap). Now comes the tricky part :-) I was not able till now, to get my custom Transferhandler to work to obtain this task. Does anyone have some code snippets which to something like this? Or does anyone have any good hints how to do this? I've really searched the whole net all over and didn't really find anything helpful ( not even here, or on the rockhoppertech site).
    I whould highly apprechiate some help!
    Thank you all in advance :-)
    Michael

    i have the same problem and Sun doesn't seem to have an answer to this question. The DnD works in Mac OS, but not on Window 2000/XP.

  • Unable to drag and drop images with manual sort in CS2 bridge

    I've had CS2 for several years now but for some reason, just never really needed to do a manual sort. Now that I DO need to, it doesn't seem to be working. I have the view set for manual and no matter what kind of working space I use, the program does not allow me to drag and drop the thumbnails into different positions. All I get is that circle with a diagonal line through it, showing me that what I'm trying isn't going to work.
    Any ideas?
    Windows XP
    2G of ram
    Bridge version 1.0.4.6 (104504)
    CS2

    DUUUUUUUDE! IT'S WORKING NOW!!!!
    When you originally asked, "What happens if you click on an image and move it to another folder?", I didn't really understand what you were talking about because I almost never have my workspace set up in a way that the folders are showing. I always hide them. So I didn't really understand what you were saying. Just a few minutes ago, I realized that that is what you were asking so I opened up the folder area and tried dragging thumbs into different folders and saw that it does work.
    So then, because of you mentioning that blue line and me know that I did see the blue line on occasion. I went back over into the thumbnails to find out if I always got the blue line or if it was a hit or miss thing. I couldn't believe my eyes when all of the sudden I saw that I no longer was getting that circle with the line through it, and low and behold, the thumbnail dropped right into position like it is supposed to!!!!
    The thing is, I don't know what I've learned from this. I thought, "well, what is different?" The only thing that I can think of is that I now have the folders showing in my workspace so I wondered if that was the secret but I just now hid the folders again like I usually do and the drag and drop into position is STILL WORKING!!!
    All I can figure is that somehow, dragging and dropping a thumbnail into a folder like that for the first time, triggered something so that I can now drag and drop among the thumbnail positions? Not sure. All I know is that for some reason, IT'S WORKING NOW!
    Now, for the second important part, I wonder if I drag and drop everything into the order that I want and then select all of the files and drag them into a new folder, will they stay in that order? I need to go experiment with that.
    If you hadn't kept at it and in turn had me keep trying stuff, it would have never happened because I had pretty much given up.
    Thanks Curt!
    You da man!!!

Maybe you are looking for

  • ATI Radeon HD 4870 Benchmarks For Motion?

    Anyone have this upgrade yet? Thanks! Scot

  • Infoset-query-selection-screen-default-values

    Hi All, I am having the requirement as I need to put default values in the selecion-screen of the report by using  Infoset query. Let me know the settings required for this. I am using SQ01, SQ02, SQ03 T.Codes. And I need display  one record only if

  • Multiple assignment records

    Hi All, I have requirement like, need to display multiple assignment and person records. select pf.employee_number ,pf.full_name ,pf.email_address, ,paf.supervisor_id ,paf.job_id from per_all_people_f pf ,per_all_assignments_f paf where pf.person_id

  • Finder is loosing focus after ⌘+I with other window open

    I select some file on Desktop and press ⌘+I to see Info, then I close Info window and if no other Finder window is open focus is still on a file. But this doesn't work if I have other Finder window opened. When I close Info window focus goes to other

  • Nokia E75 slow sync with MFE

    Hello Just got my new E75 a couple of days ago. My old HTC S740 was beginning to have problems with the buttons. But i use the E75 for work, and i sync with my companys exchange server. But this sync is very slow. Wenn i recieve an email it will take