Drag Drop images/icons JApplet

Hi! I would like to implement a Drag Drop of images/icons between two JPanels in a JApplet. Can someone give me a working example of the code that I have to implement ???
Thanks to you !!!!
TGuido

The standard procedure is to post a small message to make your old post go to the top

Similar Messages

  • How to change this code to drag and drop image/icon into it??

    Dear Friends:
    I have following code is for drag/drop label, But I need to change to drag and drop image/icon into it.
    [1]. code 1:
    package swing.dnd;
    import java.awt.*;
    import javax.swing.*;
    public class TestDragComponent extends JFrame {
         public TestDragComponent() {
              super("Test");
              Container c = getContentPane();
              c.setLayout(new GridLayout(1,2));
              c.add(new MoveableComponentsContainer());
              c.add(new MoveableComponentsContainer());
              pack();
              setVisible(true);
         public static void main(String[] args) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              catch (Exception ex) {
                   System.out.println(ex);
              new TestDragComponent();
    }[2]. Code 2:
    package swing.dnd;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.awt.dnd.*;
    import java.awt.datatransfer.*;
    import java.awt.image.*;
    import java.awt.dnd.DragSource;
    import java.awt.dnd.DropTarget;
    public class MoveableComponentsContainer extends JPanel {     
         public DragSource dragSource;
         public DropTarget dropTarget;
         private static BufferedImage buffImage = null; //buff image
         private static Point cursorPoint = new Point();
         public MoveableComponentsContainer() {
              setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.white, Color.gray));
              setLayout(null);
              dragSource = new DragSource();
              ComponentDragSourceListener tdsl = new ComponentDragSourceListener();
              dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, new ComponentDragGestureListener(tdsl));
              ComponentDropTargetListener tdtl = new ComponentDropTargetListener();
              dropTarget = new DropTarget(this, DnDConstants.ACTION_MOVE, tdtl);
              setPreferredSize(new Dimension(400,400));
              addMoveableComponents();
         private void addMoveableComponents() {
              MoveableLabel lab = new MoveableLabel("label 1");
              add(lab);
              lab.setLocation(10,10);
              lab = new MoveableLabel("label 2");
              add(lab);
              lab.setLocation(40,40);
              lab = new MoveableLabel("label 3");
              add(lab);
              lab.setLocation(70,70);
              lab = new MoveableLabel("label 4");
              add(lab);
              lab.setLocation(100,100);
         final class ComponentDragSourceListener implements DragSourceListener {
              public void dragDropEnd(DragSourceDropEvent dsde) {
              public void dragEnter(DragSourceDragEvent dsde)  {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dragOver(DragSourceDragEvent dsde) {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dropActionChanged(DragSourceDragEvent dsde)  {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dragExit(DragSourceEvent dse) {
                 dse.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
         final class ComponentDragGestureListener implements DragGestureListener {
              ComponentDragSourceListener tdsl;
              public ComponentDragGestureListener(ComponentDragSourceListener tdsl) {
                   this.tdsl = tdsl;
              public void dragGestureRecognized(DragGestureEvent dge) {
                   Component comp = getComponentAt(dge.getDragOrigin());
                   if (comp != null && comp != MoveableComponentsContainer.this) {
                        cursorPoint.setLocation(SwingUtilities.convertPoint(MoveableComponentsContainer.this, dge.getDragOrigin(), comp));
                        buffImage = new BufferedImage(comp.getWidth(), comp.getHeight(), java.awt.image.BufferedImage.TYPE_INT_ARGB_PRE);//buffered image reference passing the label's ht and width
                        Graphics2D graphics = buffImage.createGraphics();//creating the graphics for buffered image
                        graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));     //Sets the Composite for the Graphics2D context
                        boolean opacity = ((JComponent)comp).isOpaque();
                        if (opacity) {
                             ((JComponent)comp).setOpaque(false);                         
                        comp.paint(graphics); //painting the graphics to label
                        if (opacity) {
                             ((JComponent)comp).setOpaque(true);                         
                        graphics.dispose();
                        remove(comp);
                        dragSource.startDrag(dge, DragSource.DefaultMoveDrop , buffImage, cursorPoint, new TransferableComponent(comp), tdsl);     
                        revalidate();
                        repaint();
         final class ComponentDropTargetListener implements DropTargetListener {
              private Rectangle rect2D = new Rectangle();
              Insets insets;
              public void dragEnter(DropTargetDragEvent dtde) {
                   Point pt = dtde.getLocation();
                   paintImmediately(rect2D.getBounds());
                   rect2D.setRect((int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),buffImage.getWidth(),buffImage.getHeight());
                   ((Graphics2D) getGraphics()).drawImage(buffImage,(int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),MoveableComponentsContainer.this);
                   dtde.acceptDrag(dtde.getDropAction());
              public void dragExit(DropTargetEvent dte) {
                   paintImmediately(rect2D.getBounds());
              public void dragOver(DropTargetDragEvent dtde) {
                   Point pt = dtde.getLocation();
                   paintImmediately(rect2D.getBounds());
                   rect2D.setRect((int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),buffImage.getWidth(),buffImage.getHeight());
                   ((Graphics2D) getGraphics()).drawImage(buffImage,(int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),MoveableComponentsContainer.this);
                   dtde.acceptDrag(dtde.getDropAction());
              public void dropActionChanged(DropTargetDragEvent dtde) {
                   Point pt = dtde.getLocation();
                   paintImmediately(rect2D.getBounds());
                   rect2D.setRect((int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),buffImage.getWidth(),buffImage.getHeight());
                   ((Graphics2D) getGraphics()).drawImage(buffImage,(int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),MoveableComponentsContainer.this);
                   dtde.acceptDrag(dtde.getDropAction());
              public void drop(DropTargetDropEvent dtde) {
                   try {
                        paintImmediately(rect2D.getBounds());
                        int action = dtde.getDropAction();
                        Transferable transferable = dtde.getTransferable();
                        if (transferable.isDataFlavorSupported(TransferableComponent.COMPONENT_FLAVOR)) {
                             Component comp = (Component) transferable.getTransferData(TransferableComponent.COMPONENT_FLAVOR);
                             Point location = dtde.getLocation();
                             if (comp == null) {
                                  dtde.rejectDrop();
                                  dtde.dropComplete(false);
                                  revalidate();
                                  repaint();
                                  return;                              
                             else {                         
                                  add(comp, 0);
                                  comp.setLocation((int)(location.getX()-cursorPoint.getX()),(int)(location.getY()-cursorPoint.getY()));
                                  dtde.dropComplete(true);
                                  revalidate();
                                  repaint();
                                  return;
                        else {
                             dtde.rejectDrop();
                             dtde.dropComplete(false);
                             return;               
                   catch (Exception e) {     
                        System.out.println(e);
                        dtde.rejectDrop();
                        dtde.dropComplete(false);
    }Thanks so much for any help.
    Reagrds
    sunny

    Well, I don't really understand the DnD interface so maybe my chess board example will be easier to understand and modify:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=518707
    Basically what you would need to do is:
    a) on a mousePressed you would need to create a new JLabel with the icon from the clicked label and add the label to the glass pane
    b) mouseDragged code would be the same you just repaint the label as it is moved
    c) on a mouseReleased, you would need to check that the label is now positioned over your "drop panel" and then add the label to the panel using the panels coordinates not the glass pane coordinates.

  • Drag & drop images from Finder into new Photoshop layer?

    Is it possible to drag & drop images from Finder into a new Photoshop layer?
    I can do it from a web browser, but not the Finder.

    >I couldn't find a way to do so in Bridge, but also I never use that program. Never got into Bridge's workflow. >
    I really do suggest that you re-visit Bridge especially the CS4 version.
    I just cannot conceive of trying to use a Digital camera, a Scanner or the Creative Suite programs without using Bridge and ACR.
    I can even use it to read PDFs and inDesign documents (all pages!) without opening Acrobat or InD..
    >I usually keep a "work" window open with all the files I am using for a project, so it would be far more handy to be able to skim them in the Finder.
    It is now far more effective and efficient to do that in Bridge than in the Finder.
    This is where you would find the new Collections feature to be invaluable:
    Just select all the images and other files connected to a project from any folder and drag their icons into the same Collection.
    You then have all aliases (previewable at full-screen slide-view size with one click of the space bar in CS4) to ALL of your files which are now visible in. and openable from, a single panel.

  • Firefox bookmark toolbar not allowing me to drag & drop website icons. I've gone into view and click on " bookmark toolbar".

    firefox bookmark toolbar not allowing me to drag & drop website icons. I've gone into view and click on " bookmark toolbar". bookmark toolbar appears but its but its not allowing me to drag and drop the icon on the toolbar. i've tried everything that one is supposed to do but its not working. its frustrating.
    stef./.\

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible.
    *View > Toolbars
    *Right-click empty toolbar area
    Use Toolbar Layout (Customize) to open the Customize window and set which toolbar items to display.
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar setup
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing
    You can check for problems caused by a corrupted localstore.rdf file if the above didn't help.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Drag drop images while composing the forum post

    Hi All,
    Many time I felt like it would be good if we can drag drop images to the forum post being composed.  Similar to Gmail compose, if NI forum composition page also has that drag drop feature, it would be great.  But I'm wondering if it's only me or other people are also out there looking for this feature.
    Thanks,
    Ajay.

    Francois,
    I have tried to implement this bean but I'm having problems. I've been using your
    LAF package for almost 4 years now without issue. I tried the jar file from the zip
    file. I also created a new project and recompiled the java code against the 10.1.2.3
    frmall.jar file that matches our app server. I resigned it and it's still not working.
    Maybe I'm just missing something simple. When I compile and run the form, I see
    the canvas and I can change the text fields, but I don't see how I can drag and
    drop items. Hopefully, you can think of something that can fix our problem. I would
    love to be able to use drag and drop functionality in an upcoming application.
    We're running the following versions:
    App Server: 10.1.2.3
    DB: 10.2.0.5
    JDev: 10.1.3.3.0
    Windows XP for the clients
    Windows Server 2008 for the servers
    Thanks,
    Jason
    Edit: I looked in my java console and saw that my issue was that we signed this jar file with a different certificate. I created a special config as Francois has suggested in another post and included only the DnD.jar file and it worked. However, I can't get the image or multi-line text areas to drag and drop. I'll keep poking around and see if I can figure out what's going on. The console seems to recognize when I'm dragging and dropping from all fields.
    Edited by: hanszarkov on Jun 27, 2011 12:58 PM

  • How do I drag an image icon or image from one panel to another panel?

    Please help.
    I know to need how to drag an image icon from one panel to the other. For example, the first panel would shows the image files that is inside my folder. How can i code it so that I can drag the image that appear on the first panel into the second panel which will hold the images that I want to embed my barcode inside?
    The thumbnail size of the image and showing all the image files in my folder was done already, I only need to know how can I make the image icon to be able to drag from one panel to the other.
    Thanks.

    I found this code in some websites:
    public class ImageSelection extends TransferHandler {
         private static final DataFlavor flavors[] = {DataFlavor.imageFlavor};
         public int getSourceActions(JComponent c) {
              return TransferHandler.COPY;
         public boolean canImport(JComponent comp, DataFlavor flavor[]){
              if (!(comp instanceof JLabel)){
                   return false;
              for (int i=0, n=flavor.length; i<n; i++){
                   for (int j=0, m=flavors.length; j<m; j++){
                        if (flavor.equals(flavors[j])){
                             return true;
              return false;
         public Transferable createTransferable(JComponent comp) {
              if (comp instanceof JLabel) {
                   JLabel label = (JLabel)comp;
                   Icon icon = label.getIcon();
                   if (icon instanceof ImageIcon){
                        final Image image = ((ImageIcon)icon).getImage();
                        final JLabel source = label;
                        Transferable transferable = new Transferable(){
                             public Object getTransferData(DataFlavor flavor){
                                  if (isDataFlavorSupported(flavor)){
                                       return image;
                                  return null;
                             public DataFlavor[] getTransferDataFlavors(){
                                  return flavors;
                             public boolean isDataFlavorSupported(DataFlavor flavor){
                                  return flavor.equals(DataFlavor.imageFlavor);
                        return transferable;
              return null;
         public boolean importData(JComponent comp, Transferable t){
              if (comp instanceof JLabel){
                   JLabel label = (JLabel)comp;
                   if (t.isDataFlavorSupported(flavors[0])){
                        try {
                             Image image = (Image)t.getTransferData(flavors[0]);
                             ImageIcon icon = new ImageIcon(image);
                             label.setIcon(icon);
                             return true;
                        catch (UnsupportedFlavorException ignored){
                        catch (IOException ignored) {
              return false;
    What this codes does is to get the image from the imageicon and replace the image to the imageicon that you drag the source from. However, I had no clue how I can get the source's file name. Anyone can teach me how?
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can't drag & drop images from Windows Explorer into Elements 7

    Hi...
    I'm a Photoshop Elements 7 newbie... I can't drag and drop images (jpeg, tiff, Olympus RAW) from  Windows Explorer (file explorer and not IE) to Photoshop Elements like I  can in Corel Paint Shop Pro X2? It also works in Corel Painter IX.5 & ArtRage 3 (except for RAW)... My operating system is Windows 7 Home Premium 64 bit.... I've uninstalled and re-installed Elements but to no avail. I've also tried to run Elements under various compatability modes but still no luck....
    Any ideas?
    It's driving me nuts...
    Thanks kindly
    Ken

    "I just remembered: If the Editor or Organizer are "running as administrator", then you can't drag and drop from Windows Explorer.  To see if you're running the program as administrator right click the desktop icon or Start Menu item you use to launch PS and select Properties.  On the Compatibility tab, is Run This Program As Administrator checked?  (Note that in Vista and Windows 7, running a program as administrator is different than running it in an account that's a member of the Administrator's group.)"
    I wasn't running the program as administrator so I enabled that compatibility property applied it then disabled it. It seems to work now. I thought I'd add this to flesh out the previous answer. I didn't open the program in between the enable and disable, so it is a quick process. Also, I am using windows 8.1 and had to open the file location in order to do this. Right click on the tile then choose 'open file location'

  • Drag & Drop Images Between Tabs?

    Hi, Forgive me if I am missing the obvious but I need some help.
    Just got myself an iMac and I am in the process of getting it set up how I like it, Made the move from a Windows PC where I used the FireFox browser.
    My plan had been to just use Safari on my Mac to take advantage of all the good things like handoff, keychain etc with my other iOS devices.
    Now here is my problem, I use eBay a lot and I upload extra photos to hosting sites, then drag and drop them from that tab into the description on the eBay tab.
    However Safari does not seem to allow this, When trying to drag the images between tabs I just get a green + symbol which replaces the tab whereas when I use FireFox to do the same the other tab essentially "opens" allowing me to drop the image in.
    Is there anything I can do to fix this or a work around? I have tried the "Copy image" option but when I paste it in I just get a broken image picture.
    I should say the OS X version of FireFox works fine so it must be something to do with how Safari handles it.
    Hopefully somebody can advise?
    Many Thanks
    Craig

    I have found a slight work around in that if you use a new window instead of of a tab, then shrink it down you can drag and drop images.
    But surely there has to be a way to do it between tabs?
    Basically I am looking for a way to have the tab open when it is hovered on instead of the green + button appearing...

  • Drag & drop; image degradation; preview for web screen

    Hi. I'm a photographer and was wondering how to enforce a no
    drag and drop option for each of my images on my page. I'm also
    having problems with dragging an image from the desktop to my
    template and the image not transfering over well, i.e. it looks
    flat with a lack of contrast. And last question, when I apply the
    preview for web page from DW, my sample does not include the
    photograph, just a small box with a ?. Any solutions? Thank
    you!!

    Hi. I'm a photographer and was wondering how to enforce a no
    drag and drop option for each of my images on my page. I'm also
    having problems with dragging an image from the desktop to my
    template and the image not transfering over well, i.e. it looks
    flat with a lack of contrast. And last question, when I apply the
    preview for web page from DW, my sample does not include the
    photograph, just a small box with a ?. Any solutions? Thank
    you!!

  • Updated iPhoto last night...Now, can't copy/paste or drag/drop images to folders/thumb drives outside of iPhoto

    As the title states, I updated iPhoto last night as per suggestion from the App store.
    It installed, and I went back to work using it. Within a few minutes, iPhoto crashed. I sent the report to Apple.
    When i opened iPhoto back up, it said it found inconsistencies and needed to repair. so i let it repair, which took a while...when it was done, i went back to work editing some photos from a recent shoot. It almost crashed again while i was working and then it came out of it. Anyways, i shut down everything after a bit of work and all was good in the world...until this morning.
    I went to get the images out of iPhoto and onto a thumb drive, but it wouldn't let me. I selected 50 images, copied them, and went to paste in the folder on the thumb drive...but it only pasted 10 of the 50 images. so i tried dragging them all and dropping them into the folder. nothing happened. it has done this to me once before, and when it did, i restarted and tried again and it worked...this time, i restarted and tried again and it kept doing the same thing. so i shut it down, did a cold boot, got everything back up, and tried again...still doing the same thing.
    It seems like every time i do an upgrade to iPhoto it causes some kind of problem. it never crashed on me until i did the first update, and since then the stability has been a real issue.
    So anyways, i didn't have a lot of time this morning before i had to go to work to try to figure this out, BUT, i did notice that it would allow me to drag and drop 1 image at a time...and that would save to the folder i selected...but i don't have time to do 1 image at a time...EVER! i am a photographer and need to drag and drop hundreds of images at a time.
    Can anyone help?
    thanks!
    Joe

    Thanks for the response, Larry!
    I will try that when I get home and see if it works. Will update the thread with the results then.
    I hope it works as you described, but it is/was so much easier to just be able to select the photos in iPhoto and drag/drop them directly into the folder on the thumb drive...it's odd it doesn't work anymore...?

  • Unable to Drag & Drop Files/Icons

    Suddenly I am unable to drag and drop icons/files. I can right-click/control-click on icons and files, but I cannot drag them anywhere.
    How did this happen? I wish I knew. All I can tell you is that I restarted my PowerBook, logged in, and -- bam. No more dragging and dropping.
    I've restarted the PBook. I've restarted the Finder numerous times. I've repaired permissions. I've verified the HD. Nothing has worked so far.
    Any ideas?
    Thanks in advance.

    OOPS, silly me!
    At this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files!

  • Need Drag & Drop Image creation app.

    HI, I'm not yet a Flash/Flex programmer but need an answer
    from an experienced one.
    I have a customer that wants to be able to make a drag N drop
    application that would produce a Vector based graphic (that I could
    save or email) as it's final product.
    Analogy: Imagine a picture frame shape workspace that you
    could drag items onto, like add an image of the sun and a tree and
    a bird, then arrange and possibly re-size them, then have some
    process take this created image and save it as some format that is
    a Vector based drawing, or I can probably convert it to vector from
    a GIF or JPG on the backend...
    Sound Possible?

    HI, I'm not yet a Flash/Flex programmer but need an answer
    from an experienced one.
    I have a customer that wants to be able to make a drag N drop
    application that would produce a Vector based graphic (that I could
    save or email) as it's final product.
    Analogy: Imagine a picture frame shape workspace that you
    could drag items onto, like add an image of the sun and a tree and
    a bird, then arrange and possibly re-size them, then have some
    process take this created image and save it as some format that is
    a Vector based drawing, or I can probably convert it to vector from
    a GIF or JPG on the backend...
    Sound Possible?

  • Drag & Drop image of currently playing song causes the Spotify window to "jump" to another position

    When I try to drag and drop the image of the currently playing song (the one that appears under the playlist list, on the left side of the screen), the entire Spotify window jumps (i.e. moves/repositions) inside the screen to a totally different position, making it impossible to drag the song to the intended playlist. It seems that the the window is moved to the current mouse cursor position (i.e. the left top position of the window becomes the mouse cursor position, with an offset). When I reposition the window again manually, and try to do the same thing, it doesn't happen. I have been able to reproduce this issue a 100% of the times: I just refocus a few other windows I have open and then try to add the currently playing song to a playlist in the afore mentioned way.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • No longer able to drag & drop to desktop..

    I was hoping someone here could help me.
    My son thought he (we) would like to try a new finder type app.
    I told him (after 2 days) that he could do this on "his computer" not mine.
    Once he removed the application and put everything back in order.........
    I no longer can drag & drop images to the desktop?!?
    He has no clue and I am praying that someone with smarter skills than me can help me out.
    Thanks in advance

    Move the com.apple.finder.plist file out of your users /Library/Preferences/ folder to the Desktop, OPTION-click & hold the Finder's Dock icon, select Relaunch, and see if that fixes the problem. If so, delete the moved file and reset your other Finder preferences. If you don't remember how you had things, check the Finder's preferences via Finder->Preferences. If this doesn't fix the issue, create a new admin user account, log into it, and see if the problem persists there.
    Once you resolve the issue, ban your son from your computer.

  • Don´t allow drag&drop

    In my app you can drag&drop images from the file system
    into air. but now I want to forbid to drag and drop the image
    inside the application. now I get this error message when dragging
    images inside my app:
    "TypeError: Can't get property length from null value"
    and when I browse for images and then drag them inside my app
    I get this error message:
    "ArgumentError: Error #2015: Invalid BitmapData.
    at flash.display::BitmapData()
    at flash.html::HTMLLoader/nativeOnMouseMove()
    at flash.html::HTMLLoader/onMouseMove()"
    so, how can I forbid to drag images inside my app or just
    solve these errors?
    Thanks a lot!

    sorry, but...I don´t know how to do this...
    here´s my code for drag&drop into the app:
    window.htmlLoader.addEventListener("nativeDragDrop",function(event){
    var filelist =
    event.clipboard.getData(air.ClipboardFormats.FILE_LIST_FORMAT);
    var elem = null;
    var name = null;
    if (filelist.length) {
    for (var f = 0; f < filelist.length; f++) {
    name = filelist[f].name;
    elem = document.getElementById('list5');
    elem.innerHTML += name;
    function preventDefault(event){
    event.preventDefault();
    }

Maybe you are looking for

  • Mail won't open since I tried to send an email with big attachment.

    I have swiped Mail off the multi-tasking bar, I've restarted the iPad several times and have deleted the draft from my email account (going via the web). Mail still wont open...I figure the attachment was goo big and has crashed it. Can you help plea

  • Can't download music - seems to be an iTunes Match problem

    I have iTunes Match activated, which is working fine on my iPad and iPhone.  However I cannot download purchased music onto the iMac.  In my household there is a shared iMac and each user has a different login & password.  Only I know my login passwo

  • New MacBook Pro to HDTV issue

    Hello there, I'm simply having the problem where I am not allowed to go more than or less than 1360 x 768. If I go lower or higher, the colour of the screen just turns absurdly bright and I've tried taking a screenshot from that and it seems fine whe

  • IMessage Activation

    I can't activate iMessage.  I sign in with my Apple ID, but I always get the message: "Could not sign in.  Please check your internet connection and try again." AND I HAVE A STRONG INTERNET CONNECTION!!! A little help?

  • How do you see how many people are on web site?

    how do you see how many people are on your web site? if there is a way please tell me. thanx, Daniel