Which Listener I should use if I drag and Drop an image/icon into a JPanel?

Dar Friends:
Happy new year.
I try to drag and Drop an image/icon into a JPanel, and hope I can immediately detect it after DND,
Which Listener I should use in this JPanel if I drag and Drop an image/icon into a JPanel??
Thanks

Thank camickr .
I can dnd an image into a JPanel called JPanelOld already, I hope to use another JPanel or JTree to listen to any Dropped Image in JPanelOld later on so I can take some action in another JPanel or JTree.
so what kind of Listener I should use for my purpose??
where to add this Listeners??
Happy New Year.

Similar Messages

  • How to drag and drop href image from webbrowser to office using vsto c# wpf?

    I want to drag and drop href images from web browser to office using C# wpf. Is it possible to drag href images ? give me the solution

    Hi,
    Are you developing an Office Add-in application? Do you mean you hold a wpf Web Browser control in the Office Add-in project?
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I use to drag and drop an web address into a link toolbar, can't seem to figure out how to do this...?

    I just upgraded to Windows 7 and with it I got the latest Firefox. There is nothing like learning 2 things at one time. On my old XP and 3.? all I have to do was drag and drop a web address into a link toolbar. Saving all my frequent visited or just sights I want quick access to, to a toolbar quick button. I have been playing with this for days and decided to try this Forum. I did find the Bookmark toolbar, but cant seem to figure out what is if for or if you can drop into it. When I right click it and Customize, it shows me add on buttons, but nothing to do with web addresses or alike...
    Bottom line; I want to be able to drag and drop a web address into a toolbar for recall latter and be able to edit the address with a right click at a latter date in necessary...
    Thanks, Mike

    You can drag and drop the favicon also known as the [https://support.mozilla.com/en-US/kb/Site+Identity+Button site identity button], at the left hand edge of the location bar onto a toolbar to bookmark the site.

  • PDF made with distiller vs drag and drop on Acrobat icon.

    How is the file handled differently if I us the stand alone distiller verses just dragging and dropping, say an .eps to the Adobe Acrobat Pro program Icon. I have this question because I have found using distiller on occasion will not give me a correct font as apposed to drag and drop on Acrobat Icon which will keep the font correct. I'm using Acrobat Pro on a 2 X 2.66 Dual Core Intel Xeon Mac and OSX 10.5.8.

    This is exactly how I understood this to work as well. …and yet the resulting PDF is not the same in the tests I have done.
    But, I have taken the same exact .eps file and draged it into the distiller window and had certin fonts not show correctly in the resulting PDF. When I take this same exace .eps and drag it to the Acrobat icon it creates a PDF file with all fonts showing correctly. I was looking for some insite into why this was the case. 

  • New JNDI name created for each drag and drop of database table into table

    Hi All,
    I'm using Netbeans 5.5 with Visual Web Pack with Mysql as backend. Whenever I drag and drop a database table into table component it creates new JNDI (data source) name for each table. I want to use single JNDI name for all tables. If I change the JNDI name to default name then the design disappears and shows error . Is there any option to set the JNDI name unique for all tables?
    Thanks in advance.

    Hi again,
    Well I've tried using the MouseListener / MouseMotionListener approach but it doesn't quite seem to work, although it does get the events correctly. I think the reason is that it doesn't interact correctly with the Java DnD machinery which is something that V.V hinted at. It's something that I may need to look into if / when I have more time available.
    I have to say though that I haven't had any problems with scrollbars - we're making fairly heavy use of large tables and if you drag over a table with a scroll bar and move to the top or bottom then it scrolls as you would expect and allows you to drop the data where you like. For this situation I've used pretty much the same approach as for the toy example above except that I've implemented separate source and destination TransferHandlers (the source table is read-only, and it really doesn't make sense to allow people to drag from the destination table so I've essentially split the functionality of the example handler down the middle).
    I'm not actually particularly in favour of messing too much with the mechanics of DnD, more because of lack of time than anything else. Guess I'll just have to put up with this for the moment. Doesn't help that DnD is so poorly documented by Sun.
    Thanks for all your help.
    Bart

  • When I drag and drop a wav file into garage band it is rejected. How to imposrt a wav file?

    Hi Everyone,
    I want to edit a voice recording, done in WMA format, in Garage Band.
    I saw a video in which the fie is simply draged and dropped in the timeline area, and the time line appears. Then youcan edit it.
    But when I drag and drop this WMA file into the editing area, it jumps back out to where I dragged it from.
    Is there any way to import WMA files intoGarage Band?
    Thank you, Giorafromny

    Giorafromny wrote:
    Is there any way to import WMA files intoGarage Band?
    not directly, you'll need to use some software to convert it to a format supported by GB:
    http://www.bulletsandbones.com/GB/GBFAQ.html#importformats
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • When i drag and drop an image on my site. it gives the following error. "Unable to access local files due to browser security settings. To overcome this, follo"

    I am using the firefox version 17 and when i drag and drop an image on my website. It gives me the following error.
    Unable to access local files due to browser security settings. To overcome this, follow these steps: (1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again. Or go to the homepage for a link to the tutorial on how to do it.
    I have completed the above steps and it is still showing the same error message. Any help would be highly appreciated.
    Thanks.

    Thanks kumars ,
    I have a specific drag and drop area on our website. This works fine for all earlier releases of Firefox after these security settings
    "(1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again."
    Bust these settings not work for me in Firefox 17.
    Yes the drag and drop functionality is java script based and i am not using any script blocker addons.

  • BUG - Drag and drop an image, only working at the 2nd try

    I use the last version of JDeveloper : 11g R1 : 11.1.1.2.0
    I try to drag and drop an image in a facet of a panelsplitter.
    Once the page is loaded, the first time I try to drag the image, it does not work : the image does not follow the mouse.
    When I try to drag the image again, then it works : the image follow the mouse
    So I don't think it's related to the destination/target.
    I feel it's so simple, since it just requires to add <af:componentDragSource/> inside <af:image/>
    that if it does not work, it can only be a bug in the functionality offered by ADF ...
    Or maybe there is something wrong with the generation of the page ?
    I get this message in blue in the "running log of WebLogic" :
    <FormRenderer><setupEncodingContext> Multiple forms detected on viewId: /myPage.jspx. Rich client currently has some limitations in dealing with multiple forms.
    Please note that I use jsp:include inside f:subview to include fragments (.jsff) so that the source and the destination are not in the same file, the source in a .jsff while the destination is on the main .jspx
    The code related to the drag and drop :
    <af:form id="form">
    <af:panelSplitter orientation="vertical" splitterPosition="70" id="psHeader" clientComponent="true">
    <af:panelAccordion id="paPref" discloseNone="true" styleClass="fullSize">
    <af:showDetailItem id="sdiTemp" text="Templates">
    <af:panelBox>
    <af:panelGroupLayout id="pglTemp" layout="scroll">
    <af:panelList id="plTemp" rows="2">
    <af:image id="imTemp2up" source="/images/anImage.jpg" inlineStyle="" shortDesc="...">
    <af:componentDragSource/>
    </af:image>
    <f:facet name="second">
    <af:dropTarget dropListener="#{dropHandler.handleComponentMove}" actions="MOVE">
    <af:dataFlavor flavorClass="javax.faces.component.UIComponent"/>
    </af:dropTarget>
    Any idea ?
    Thanks in advance,
    JP

    Hi,
    no bug that I can detect here as it works for me with the same setup. How likely is it that the image is too small so that you don't grab it probably the first time?
    Frank

  • Mac: can I drag and drop files from Finder into Files panel

    I am relatively new to Mac so forgive me if this is obvious.
    I just switched from Windows to Mac and now something I used to
    know how to do in Windows I can't figure out how to do on Mac. In
    Windows I used to open an Explorer window over Dreamweaver, select
    some files, and drap and drop them into the Files panel in
    Dreamweaver, and they would be sucked in.
    Now on the Mac whenever I select the Finder window to select
    files to drag and drop, the Dreamweaver panels disappear
    completely, rather than just move beneath the Finder window. So
    when I'm ready to drag and drop there's no Dreamweaver to drop
    into. I see that if I put focus on Dreamweaver, then Finder won't
    disappear, and I can click on Finder to begin a drag without
    Dreamweaver disappearing but then it is unresponsive to a drop.
    In short, I can't seem to drag and drop files from Finder
    into Dreamweaver on the Mac. Am I missing something? I'm using
    Dreamweaver CS3 on Leopard if that makes any difference.
    Thanks,
    Jan

    I don't believe you can do this on the Mac platform. The only
    other thing you could try is to use Spaces and have the Finder open
    in one Space and then drag it over to Dreamweaver in another space.
    Outside of that I can't think of how this would work.

  • 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

  • How can I drag and drop a Tidal job into another group?

    How can I drag and drop a Tidal job into another group? In Tidal Help, it says-
    In the Jobs pane, press and hold the Ctrl key and at the same time right-click and either individually select individual jobs within a job group or drag your mouse cursor over a block of jobs that you wish to select. You can only move multiple jobs between job groups if the jobs being moved are on the same level.
    Keeping the right mouse button depressed, drag the cursor to the job group that you wish to move the jobs to and release the mouse button.
    When moving jobs from one job group to another, you must decide if the moved jobs keep their original job group attributes or assume the calendar and agent characteristics of its new job group.
    A confirmation dialog, offers three inheritance options for the jobs moved to the "new" job group parent. Select one of the following options:
    However, when I attempt to follow those instructions, it doesn't work at all and there is no indication that it's even trying (i.e., I don't see the selected job following my cursor at all and all I get is the normal menu when you right click anywhere on the screen.)
    Is there another way to do this or is there a master setting that needs to be changed so that ability is enabled?
    Thanks.

    Go into edit mode for the job group group and just manually edit the section for Parent job/Group.
    Cheers

  • Help, I can not drag and drop address book contacts into numbers.

    i have read the manual. watched videos on youtube, but I can not drag and drop address book contacts into numbers or pages.  I upgraded to Numbers 09.  set up the fields as stipulated, but when I drag a contact to the numbers canvas it just bounces back to address book.  I tried reinstalling 09 thinking it was a faulty install.  no luck.  Have tried dragging to balnk part of canvas, to the table, and to a table with fields, no luck. 
    Thank you.

    Could be a preferences setting. See Jerry's post in this thread.
    Regards,
    Barry

  • I can't drag and drop iTunes music files into Roxio Jam 6 anymore and, now I have to import music one song at a time by using the " " or "-" buttons on the bottom. What is going on? G5 Dual 2 Ghz and OS 10.4.11

    Hi. I have not used Roxio Jam for quite a long time and I just wanted to make a few CDs. Jam used to work easily and well. I have a problem. I can't drag and drop iTunes music files anymore and, now I have to import music one song at a time by using the "+" or "-" buttons on the bottom. What is going on? I trashed the preferences file and restarted Jam to no avail. I also have selected that Jam should open files with iTunes in the Jam preferences. I have a G5 DP 2Ghz PPC  machine with OS 10.4.11, iTunes 9.2.1 and Quicktime's version is 7.6.4. I have 2 GB of RAM and the machine has dual 1.25 Ghz. processors plus a 500 GB HD. Can anybody give me any suggestions?
    Thanks in advance,
    Larry

    I found an solution.
    Uninstalling AirParrot as well as the two offending AirParrotDriver.kext and APExtFramebuffer.kext files in System>Library>Extensions was the fix. All problems disappeared.

  • Muvo slim,What is displayed in window and does it use windows explorer drag and drop to trans

    Im about to buy a muvo slim and already own a zen xtra.Does muvo slim allow for recharge using plug accessory I got with my zen or can i only charge using usb cord and computer?What is displayed in screen and can i use drag and drop transfer method from windows explorer?Finally can i use the mediasource 3.20 softwear update i now use with my zen or must i input different mediasource version for slim than one i use with the zen? thanks matt

    mattg3 wrote:
    Im about to buy a muvo slim and already own a zen xtra.Does muvo slim allow for recharge using plug accessory I got with my zen or can i only charge using usb cord and computer?
    It charges via its USB socket, so you can't use the Xtra's power supply.
    What is displayed in screen and can i use drag and drop transfer method from windows explorer?
    It works as a flash dri've, so appears as a dri've letter in Windows Explorer.
    Finally can i use the mediasource 3.20 softwear update i now use with my zen or must i input different mediasource version for slim than one i use with the zen? thanks matt
    Go to Nomadworld.com downloads and you'll see the Slim listed there with MediaSource and the MuVo plugin.

  • Really stupid that you can't drag and drop photos from Finder into Events

    There is no way in iPhoto to do what I want and need to to, to wit, drag and drop photos from the Finder into existing iPhoto Events.
    It really doesn't make sense that you can't do this. First of all, calling these groups Events to begin with is not smart; in my case, a group of photos in a folder on the Finder is rarely all from one photo session or so-called "event"--- instead of Events they should just be called Groups or something, and you should be able to drop individual photos into them. I have thousands of family photos that were accumulated on my hard drives over the years, some scanned in from film negatives, slides, or prints, others from digital cameras, and when I have changed Macs and hard drives over the years, every time a folder of photos was moved from an old hard drive to a new one, or regrouped into various folders, the photos seem to have acquired new dates of origin, etc.
    Anyway, what I mean is, if Events are all time based, then somebody like me who has thousands of photos with all sorts of dates of origin, mostly unrelated to the date that the photo was actually shot, is screwed. I have old photos with new dates of origin and other mismatches between photos and the dates when they were actually shot or scanned.
    My gripe is, again, that when I find photos on my hard drives that belong in certain iPhoto Events that have already been created, I cannot just drag these photos from the Finder and drop them into the Events they belong in. Instead, the stupid program creates a new Event from each photo I try to drop into an existing Event. That means I have to chase these new photos all over the place inside of iPhoto, trying to figure out where each new photo (now called an "Event") has ended up, so that I can drag and merge it into the Event I wanted it to go into in the first place. A real pain in the neck. It simply takes too long to do this for each photo added.
    What this means is that iPhoto is not going to be a practical way to organize for a person like me until Apple makes it possible to simply drop any photo from the Finder into an existing Event. There should be an option to allow that. I'm really surprised there is not one. <edited out by Hosts>
    Tom

    Tom, iPhoto will not overwrite photos with the same name. I have plenty of photos with the same name in the same event. Each photo most likely has an internal handler that manages the photo, and not just the name of the file.
    I agree with you that this is sub-optimal, and (IMO) I think what happened is iPhoto 6 had rolls, and they came up with a really cool interface for mousing over those rolls, and decided it was more consumer friendly (and because film is a thing of the past) to call them events, rather than rolls. I think it was worth a shot, but they just slightly missed.
    Right now in iPhoto08, any serious organization is done in folders and albums. Personally, I think they need to combine the two concepts -- the great "mouse over" view of events with the organization abilities of folders and albums. I'd like an albums view where I can mouse over the albums. Actually, Aperture 2's interface for organization is more functional than iPhoto, so I am hoping some of that benefit creeps into the next iPhoto release.
    What I do is: I use events for high level grouping (like Winter 2007) and I organize folders and albums to break that down further ("trip to Montreal" "Christmas" etc.). But I do it backwards. I fill albums first, then I organize events.
    When I drag in pictures to iPhoto, first I make the target album in iPhoto that I want to populate, then I drag the photo directly to that album (not to events). iPhoto automatically puts the photo into the album I created and also into a new event. Later, I go into events, right-click on this new event to "open event in separate window" then I move around the events view, to drop in the pictures from the "import" event I just created. If I move all the pictures into other events, iPhoto automatically deletes the event I just emptied. You could skip the event organization all together if you wanted to, but you'd lose the cool mouse-over feature, which can be handy.
    One nice thing about having events AND albums is you can have the photo just once in iPhoto, in an event, but then have the photo appear in as many albums as you want (as well as projects and web galleries) all while only having one photo on your hard drive. So, there are benefits to events, but I think iPhoto is missing just a couple little bits of organizational ability to make it perfect. (and yes, I've submitted this all to Apple as feature requests)
    Just in case you don't know -- events don't have any hierarchy. That is, you can't nest events. But you can have folders with subfolders, and any folder can contain albums. Albums cannot have sub-albums, and folders don't hold photos. Only albums hold photos, and folders (or sub-folders) hold albums. Try create some folders and albums and you'll get the hang of it. One other issue that Apple needs to address. When you create a new folder or album, it doesn't put it right where you want it, but rather puts it at the bottom of the list, so you have to drag it up to where you want it. Try it out, and you'll see what I mean, then submit it as a feature request to improve that.
    I agree it's not perfect, but it's not too bad once you get used to it. And the benefits of working with the rest of the features of iPhoto is worth it. I'm just really hoping they do a few tweaks on the next release. They are near greatness here. They could just use a little nudge on the last bits. (in my opinion of course. Others may disagree, but I've talked to enough people who have the same issues you are having to know we are not alone on this).

Maybe you are looking for

  • TV don't work with OSX Server software?

    Everything worked great BEFORE I updated our MacMini Intel to OSX Server software, now iTunes can't find the recent found Apple TV. And therefore the connection is gone and the syncing don't work anymore. Any work-around or suggestions on how to solv

  • How can I convert a video to a playable format?

    This is a combined iTunes / iPod touch question. I downloaded a video to iTunes. It is in 3pg format and it and plays perfectly in iTunes. However, when I tried to sync it into the iPod touch, it stopped with the error message that the touch could no

  • Vendor price history

    Hi folks, I am looking for a report that will provide Vendor price history for a material. Is there any standard SAP report or any  table that gives this information? Sincerely, Sanjay

  • Magic Mouse under Win7 - full functionalities

    Dear all, I don't have a choice - my company runs Win7. Nevertheless, I don't want to miss my Magic Mouse and my Apple Keyboard that I know from my home devices. To connect the Mouse with my Dell Nogebook hasn't been a challenge but, I miss functiona

  • E7-00 offline navigation

    My Nokia E7-00 refuses to start navigating - or even to find its current position on the map that has already been loaded to its memory - unless a data connection is available. It just keeps complaining about the missing connection. Excluding some mi