Drag and Drop - Java -- other application

Hi,
I'm writing an application, which requires to transfer the content of textfields through Drag and Drop to any other application.
Basically this works, but in combination with some applications, e.g. Mozilla, it happens, that the DragSourceListener doesn't recognize, that the Drag and Drop - operation is finished.
Because of this I get an InvalidDnDOperationException, when I try to start a new Drag and Drop - operation.
Can anyone tell me, how to solve the problem?
thanks in advance
Christoph

And I get the:
java.lang.NullPointerException
     at oracle.jbo.uicli.jui.JUPanelBinding.bindUIControl(JUPanelBinding.java:808)
     at empapppack.empframe.jbInit(empframe.java:116)
     at empapppack.empframe.<init>(empframe.java:51)
     at emppapppack.Application1.<init>(Application1.java:13)
     at empapppack.Application1.main(Application1.java:50)

Similar Messages

  • Can't drag and drop files onto Applications in Dock since upgrading to 10.6

    Ever since my wife upgraded her iMac (2 GHz, 2 gigs) to 10.6, she can no longer drag and drop files onto certain applications in her dock to open the file. She has to go into the application and go to "open file" or whatever.
    For example, if she has a Word doc on her desktop, she cannot drag it onto the Word icon in her dock.
    Any advice?

    You have many issues with your and your wife's machine(s). Everything you've posted works here. Reinstall Snow Leopard, repair permissions, and see if that fixes things.

  • Drag and drop in windowed application

    i have created application using drag and drop funcatinalities .it's working in webbrowser as internet application .but i converted int o a windowed application and dra and drop isn't working in that form as desktop app.
    pls help me
    thank you.

    Maybe I should mention that this drag and drop feature doesn't work on ALL the programs, which leads me to believe that this is a system preferences problem. I can't drag into any of the Adobe programs, iPhoto, Kodak Easyshare, etc.
    I understand the Get Info solution, but that is pinpointing only one type of file... I would like to fix this feature for all files.
    Thanking in advance, Ck

  • Drag And Drop Java Portlets

    Hi,
    How can we develop Drag and Drop (DnD) Portlets. Does Oracle Portlet provide such functionality.Can someone guide me or have any documentation on how to create Java Portlets that can be dragged arround i.e. just like on google site http://www.google.com/ig. I am using 10.1.0.4. Thanks

    Is there any kind of documentation available as how to build this kind of functionality. What API's to use. Lifefray and StringBeans Portal provides DnD functionality so curious if it's also doable using Oracle Portal and if so how to start on it. I am more interesetd in docs. and API's to use for building our own.
    Thanks

  • Drag and Drop between Flex application

    Hello,
    Can we implement the Drag and Drop functionality between 2
    FLEX applications?
    Each flex application is in its own IE.
    Thank you,
    Thierry

    To my knowledge you can't drag and drop anything between 2
    windows in a browser using any technique in the way that you mean.
    In other words, I don't think you can even do this in javascript
    between 2 windows.
    You can use LocalConnection to simulate this though, by
    having the drag manager notify the other application when it leaves
    the stage, so that when you reach the other application it will
    start the drag effect again in that window.

  • Drag and drop to other desktops doesn't work in Mavericks

    I'm currently experiencing an issue with dragging and dropping files within Mavericks. It seems to work only within one desktop: from one window to another. However, when I want to drag something to another screen/desktop the dragged items become stuck on the other screen. I can only move them again when I go back to the original window I dragged them from.
    It is not practical to drag and drop anything on the same desktop on my (little) 13" MacBook Pro. By the way, this happened after updating to Mavericks.\
    Can anyone help me?
    If you're experiencing the same problem, please click the thumb.

    the splice() method accepts two arguments.  the first is the (start) index of the element(s) you want to remove and the 2nd argument is the number of elements you want to remove.  in your situation, you should be using:
      bubbles.splice(currentIndexArray,1);

  • Drag and drop from other mac didnt work

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

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

  • Drag and drop moves other art around.

    Bug? Anyone else experience placing an image into a layout via drag-and-drop and having existing imagery on the artboard get pushed around? Man CS6 really sucks.

    Thanks. D&D isn't much faster than right-clicking, copy and paste in Illy. Does that shift things? Just curious as a means of isloating. Could try placing as well just to eleminating any art hitting Illy having the effect you are describing.
    Is snap to pixel grid on? Not that it should affect the other items in Illy.
    Also, have you tried updating Illy?
    Mike

  • Adobe Flex 4 Drag and drop example in application

    I have been looking at the following example:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64595-7fed.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7cee
    The example works in web based flash project, but if I use the same code in a desktop AIR project image does not move to the mouse position. (this is obvilously after I have changed the Application container to a WindowedApplication container)
    It seems to be due to the fact that the parent container stops receiving mouse move events while dragging. The image then moves to a position relative the where the mouse clicked inside the image.
    I was hoping someone would be able to tell me what I am doing wrong?

    I've managed to solve the issue using event.localX instead.

  • Drag and drop from external Application

    I drag some text from outside indesign, on a page so the text is imported.<br />What I want is to get the text in the function ProcessDragDropCommand.<br />But the problem is how can I get the text.<br />I tried this               <br />InterfacePtr<IDataExchangeHandler> dataExchangeHandler(controller->QueryHandler(kTEXTExternalFlavor)); <br />ASSERT(dataExchangeHandler); <br /><br />if (!dataExchangeHandler) break;<br /><br />if( dataExchangeHandler->IsEmpty())<br /><br />but it is always empty.<br />How do I proceed

    That is an issue that you should take up with Adobe. Aside from the piracy issues involved with copying a legal installation to a possible illegal installation, I believe that Adobe uses serial codes unique to each of their apps that you need in order to activate a legal installation of their software. Their apps are very complicated as well and usually need to be installed by their proprietary installer app from their installation DVD to make sure that you have all of the pieces in their correct location.
    Welcome to the 21st Century by the way with Snow Leopard.
    Dah•veed

  • Drag and drop from applications onto desktop iOS Mavericks

    I upgraded to iOS mavericks thia morning and hve noticed that i can't drag and drop files from applications to the desktop anymore, a feature that made past iOS systems so great. Examples of this is trying to drag an image from a site (in a browser) to the desktop and dragging attachements out of email to the desktop. Is anyone else having this issue with iOS mavericks?

    Did anybody get an answer on this?
    I am having difficulties with moving files from the email to the finder..drag and drop does not work.
    Thank you

  • Drag and drop from Thunar gvfs-mtp (android) to application fails

    So I installed gvfs-mtp, connected my phone with usb cable and I can work with the files on the phone in Thunar fine - well, almost fine. I can browse the files, doubleclick opens them without any problem. I can copy the files back and forth.
    What is not working well is drag and drop files into applications. E.g. drag-drop of media file to mpv crashes mpv, drag-drop to vlc does nothing. Drag-drop of a photo to GIMP shows "Could not open" error:
    Opening 'mtp://[usb:003,006]/Internal storage/DCIM/Camera/IMG_20150513_184133.jpg' failed:
    Could not open 'mtp://[usb:003,006]/Internal%20storage/DCIM/Camera/IMG_20150513_184133.jpg' for reading: No such file or directory
    Drag-drop of text file to mousepad fails too (the filename is shown in the titlebar, but mousepad is empty). Again, doubleclicking the .txt file opens it up alright.
    Perhaps it is the "mtp://" in file's 'URL' that is causing problems? Is there a way how to circumvent this?
    If I just mount the device by clicking on "Android" in Thunar, and then go to
    /var/run/user/1000/gvfs/mtp:host=%5Busb%3A003%2C006%5D/Internal storage/DCIM/Camera/IMG_20150513_184133.jpg
    everything works fine.
    What is the reason for "mtp://" stuff anyway? Why not just work with the filesystem, which is obviously properly mounted?
    Thanks in advance for any comments.
    Last edited by renergy (2015-05-31 09:28:49)

    MTP stands for media transfer protocol. It's used by some devices, including Android ones. I don't know much about it but according to this thread on the Ubuntu forums discussing a similar issue, mtp is generally rather temperamental. Link: http://ubuntuforums.org/showthread.php?t=2230932

  • Drag and Drop for Creative Cloud CS applications

    I just joined Creative Cloud for CS software applicatons; I am already a Muse user - will I need to cancel that use and download Muse again to avoid double payment? Also, I am not able to drag and drop the CS applications at this time - is it not yet available? If not, when will it? Even the Muse app would not drag and drop for download?
    Thank you.

    Are you trying to install the applications my dragging the application icon from the Creative Cloud Apps page at https://creative.adobe.com/apps to your computer? If so that will not work since that is just an image in the web page.
    To install click on the Download (or Try for trial members) link and the Adobe Application Manager (AAM) should download and install. AAM will then handle the installation of the applications.

  • Drag and drop to desktop icon on Windows

    My Java application is bundled in a JAR (with a MAIN). On Windows (XP, Server 03+ and Windows 7) I would like to have it so the user can drag and drop files and/or folders onto the JAR's icon on the desktop and have it launch its MAIN passing in a list of java.io.File objects representing the dropped item(s).
    Is this possible? Do I need to turn my JAR into an EXE and if so can someone recommend an EXE generator tool that supports this drag-n-drop functionality?
    TIA,
    -Noah

    NBW-Java wrote:
    My Java application is bundled in a JAR (with a MAIN). On Windows (XP, Server 03+ and Windows 7) I would like to have it so the user can drag and drop files and/or folders onto the JAR's icon on the desktop and have it launch its MAIN passing in a list of java.io.File objects representing the dropped item(s).
    Is this possible? Do I need to turn my JAR into an EXE and if so can someone recommend an EXE generator tool that supports this drag-n-drop functionality?Noah,
    I've not ever seen another application that would do that without having the application already running, once it is running then you should be able to do a drag and drop.

  • Drag and drop to Windows desktop

    Hi
    I've been struggling with this for a while, I've got a TransferHandler class that allows drag and drop from Windows desktop to application, now I'd like to do the reverse, but can't seem to provide the suitable DataFlavor to the OS, I'm using javaFileListFlavor obviously. I am currently creating a Transferable with createTransferable, but this is a StringSelection, and I can't remove this because I need it for internal drag and drop in the application. Please advise.
    public class CDrag extends TransferHandler {
        public CDrag(TreeTableView ttv) {
            this.ttv = ttv;
            dndData = new ArrayList();
            relPath = "/";
            try {
                uriFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
            } catch (ClassNotFoundException e) {
        @Override
        public int getSourceActions(JComponent c) {
            return MOVE;
        @Override
        protected Transferable createTransferable(JComponent c) {
            String nodes = "";
            int j = 0;
            TreePath[] sel = ttv.treeTable.getTreeSelectionModel().getSelectionPaths();
            for (TreePath i : sel) {
                FileNode fNode = (FileNode) i.getLastPathComponent();
                if (j > 0) {
                    nodes = nodes + "\n";
                nodes = nodes + fNode.toString();
                j++;
            return new StringSelection(nodes);
        @Override
        protected void exportDone(JComponent c, Transferable t, int action) {
            if (!dndData.isEmpty()) {
                File[] sg = (File[]) dndData.toArray();
             // delete files that are dropped
                dndData.clear();
        @Override
        public boolean canImport(TransferSupport supp) {
            if (supp.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                return true;
            if (supp.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                return true;
            if (supp.isDataFlavorSupported(uriFlavor)) {
                return true;
            return false;
        private boolean importFiles(TransferSupport supp, File[] files) {
         // function that recursively processes all files and folders
        @Override
        public boolean importData(TransferSupport supp) {
            if (!canImport(supp)) {
                return false;
            String fns = "";
            Transferable t = supp.getTransferable();
            try {
                if (supp.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                    File[] fnsl = (File[]) ((List) t.getTransferData(DataFlavor.javaFileListFlavor)).toArray();
                    return importFiles(supp, fnsl);
                } else if (supp.isDataFlavorSupported(uriFlavor)) {
                    String s = (String)t.getTransferData(uriFlavor);
              StringTokenizer st = new StringTokenizer(s, System.getProperty("line.separator"));
              ArrayList files = new ArrayList<File>();
              while (st.hasMoreTokens()) {
                   String file = st.nextToken();
                   try {
                           URL url = new URL(file);
                        files.add(new File(URLDecoder.decode(url.getPath())));
                   } catch (MalformedURLException mue) {
                    return importFiles(supp, (File []) files.toArray());
                } else {
                    fns = (String) t.getTransferData(DataFlavor.stringFlavor);
            } catch (UnsupportedFlavorException ex) {
                Logger.getLogger(CDrag.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(CDrag.class.getName()).log(Level.SEVERE, null, ex);
         // the rest of the code here process a StringSelection
            return true;
        private List<File> dndData;
        private String relPath;
        private DataFlavor uriFlavor;
    }I have the following information available in the FileNode class - the name of the file, the path inside the application, date modified, size, whether it is a file or folder. How do I get these values into a javaFileListFlavor that Windows will understand? Also, I would need a way of returning the actual file data (which will be read from a remote server). The basic File class doesn't allow many of these things to be set.
    Regards
    Lionel

    I have the following information available in the FileNode class - the name of the file, the path inside the application, date modified, size, whether it is a file or folder. How do I get these values into a javaFileListFlavor that Windows will understand? Also, I would need a way of returning the actual file data (which will be read from a remote server). The basic File class doesn't allow many of these things to be set.I know I tried the same thing - I'm not sure this can be done at all, it could be that this can't be done if the file doesn't already exist somewhere on the local file system.
    Edited by: tjacobs01 on Feb 11, 2009 12:41 AM

Maybe you are looking for

  • Mini to old regular TV

    Hey I'm connecting the Mini to my regular TV using the Apple DVI-to-Video adapter, now the picture on the TV doesn't sit right, it doesn't fill the whole screen, and it goes a too up and right, meaning I have black lines on the bottom and on the left

  • When opening new tabs they are blank;how can i make them open to my homepage?

    When you open a new tab it is blank. Is there any way to make a new tab open to my homepage? == This happened == Every time Firefox opened == always

  • Daylight Savings Snafu?

    This morning, I undocked my iPod and when I docked again, I noticed that some of the podcasts played had the wrong time. The clock was correct this week but I'm wondering if the switch to Daylight Savings time might have caused a problem. I had to re

  • ColorTransform for an element that isn't accessible

    Hi, I'm pretty new to Actionscript so I hope someone can point me in the right direction. Basically, I have been asked to develop a function on a Flash player so that you can change the colour of the control panel using a variable. The control panel'

  • Thin provisioning?

    Hi All, I am working on a deployment project Exchange 2013, We have planned to deploy exchange 2013 on VMware platform. Could some one share your experience Exchange 2013 with VMware . I have already gone trough the VMware recommendations but i am lo