Running application from installer in vista prevents drag and drop

Running a desktop application from Vista and Windows 7 through a wizzard, prevents doing a drag and drop from the desktop or another windows explorer to our java application.
We are using a windows wizard to install the application once it finishes it launches the application within the application the drag and drop work perfectly, but I can not drag from desktop or external windows explorer into my application, dragging from the application to the desktop or to another windows explorer is working fine.
If we run the application by clicking directly on the exe file (generated by the installer app), the application launches and do not present the anomaly (Drag and drop into a out side the applications work fine).
So the issue might be related to the way the installer executes the application, that maybe have a different configuration or windows permissions are not set correctly when started by the installer.
Both ways of launching the application have the same working directory the only difference i found was in the system environment (System.getenv()) the one that works has a SESSIONNAME key with a CONSOLE value in it, could this be the problem?
Any idea on how to workaround this issue or some idea to look at the installer will be kindly appreciated.

One idea is to use [Java Webstart|http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp] *(<- link)* as your installer. It might not fix the D'n'D problem, but at least if you get to the point of telling Sun about it, they will care (at least) one iota about fixing it.

Similar Messages

  • PSE 11 editor has stopped importing from scanner, no longer permits drag and drop, will not permit cropping, and other bizarre issues

    Windows 8.1, PSE 11
    I am having a number of issues including loss of import functionality from scanner, I can't drag and drop photos into the editor any more as well, or at least not after the first one. The crop function stops working after the first couple of photos.  Then some freezing.  A little added crashing.  A plethora of other bizarre issues as well.  This just stated happening a couple of days ago. 
    What I have tried:
    Uninstall/Install. 
    Deleted preferences both before opening Editor (crontrol-alt-delete) and after opening it. 
    Kindly advise.  Thanks!
    Adobe Photoshop Elements Version: 11.0 (11.0 (20120830.r.32025)) x32
    Operating System: Windows 8 64-bit
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:10, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
    Physical processor count: 8
    Processor speed: 3500 MHz
    Built-in memory: 8139 MB
    Free memory: 5185 MB
    Memory available to Photoshop Elements: 3255 MB
    Memory used by Photoshop Elements: 70 %
    Image tile size: 128K
    Image cache levels: 6
    Display: 1
    Display Bounds:=  top: 0, left: 0, bottom: 1440, right: 2560
    Video Card Number: 1
    Video Card: NVIDIA GeForce GTX 660 Ti
    Driver Version: 9.18.13.3750
    Driver Date: 20140327000000.000000-000
    Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Video Mode: 2560 x 1440 x 4294967296 colors
    Video Card Caption: NVIDIA GeForce GTX 660 Ti
    Video Card Memory: -2047 MB
    Application folder: C:\Program Files (x86)\Adobe\Photoshop Elements 11\
    Temporary file path: C:\Users\evan\AppData\Local\Temp\
    Photoshop Elements scratch has async I/O enabled
    Scratch volume(s):
      Startup, 931.2G, 805.4G free
    Required Plug-ins folder: C:\Program Files (x86)\Adobe\Photoshop Elements 11\Required\
    Primary Plug-ins folder: C:\Program Files (x86)\Adobe\Photoshop Elements 11\Plug-Ins\
    Additional Plug-ins folder: not set
    Installed components:
       ACE.dll   ACE 2011/03/29-16:11:44   63.457850   63.457850
       adbeape.dll   Adobe APE 2011/01/17-12:03:36   64.452786   64.452786
       AdobeLinguistic.dll   Adobe Linguisitc Library   5.0.0  
       AdobeOwl.dll   Adobe Owl 2012/06/20-18:39:56   4.1.9   78.509892
       AdobeOwlCanvas.dll   Adobe Owl Canvas   3.0.68   61.2954
       AdobePDFL.dll   PDFL 2011/03/29-16:11:44   63.378681   63.378681
       AdobePIP.dll   Adobe Product Improvement Program   6.0.0.1654  
       AdobeXMP.dll   Adobe XMP Core 2010/10/12-08:45:30   63.139439   63.139439
       AdobeXMPFiles.dll   Adobe XMP Files   5.0   61.134777
       adobe_caps.dll   Adobe CAPS   4,0,42,0  
       Adobe_OOBE_Launcher.dll   Adobe OOBE Launcher   2.2.0.4 (BuildVersion: 2.2; BuildDate: Wed Apr 27 2011 21:49:00)   1.000000
       AGM.dll   AGM 2011/03/29-16:11:44   63.457850   63.457850
       ahclient.dll    AdobeHelp Dynamic Link Library   1,7,0,56  
       aif_core.dll   AIF   3.0   1.486530
       aif_ogl.dll   AIF   3.0   1.486530
       amtlib.dll   AMTLib   4.2.0.4 (BuildVersion: 4.2; BuildDate: Wed Apr 27 2011 21:49:00)   1.000000
       amtservices.dll   AMTServices   4.2.0.4 (BuildVersion: 4.2; BuildDate: Wed Apr 27 2011 21:49:00)   1.000000
       ARE.dll   ARE 2011/03/29-16:11:44   63.457850   63.457850
       asneu.dll    AsnEndUser Dynamic Link Library   1, 7, 0, 1  
       AXE8SharedExpat.dll   AXE8SharedExpat   3.3   49.279053
       AXEDOMCore.dll   AXEDOMCore   3.3   49.279053
       AXSLE.dll   AXSLE   3.3   49.279053
       Bib.dll   BIB 2011/03/29-16:11:44   63.457850   63.457850
       BIBUtils.dll   BIBUtils 2011/03/29-16:11:44   63.457850   63.457850
       boost_threads.dll   DVA Product   5.0.0  
       cg.dll   NVIDIA Cg Runtime   2.0.0015  
       cgGL.dll   NVIDIA Cg Runtime   2.0.0015  
       CoolType.dll   CoolType 2011/03/29-16:11:44   63.457850   63.457850
       data_flow.dll   AIF   3.0   1.486530
       dvaadameve.dll   DVA Product   5.0.0  
       dvacore.dll   DVA Product   5.0.0  
       dvaui.dll   DVA Product   5.0.0  
       ems.dll   Elements Organizer   11.0  
       ExtendScript.dll   ExtendScript 2010/03/05-08:21:15   61.423205   61.423205
       FaceDetector.dll   FaceDetector 0000/00/00-00:00:00   2.0.1.1   2.0.1.1
       FileInfo.dll   Adobe XMP FileInfo   5.0   61.134777
       filter_graph.dll   AIF   3.0   1.486530
       hydra_filters.dll   AIF   3.0   1.486530
       icucnv36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       icudt36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       image_compiler.dll   AIF   3.0   1.486530
       image_flow.dll   AIF   3.0   1.486530
       image_runtime.dll   AIF   3.0   1.486530
       JP2KLib.dll   JP2KLib 2011/03/29-16:11:44   63.196876   63.196876
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       LogSession.dll   LogSession   2.1.2.1640  
       MPS.dll   MPS 2011/05/24-09:45:42   63.464027   63.464027
       MSVCP100.dll   Microsoft® Visual Studio® 2010   10.00.30319.1  
       MSVCP71.dll   Microsoft® Visual Studio .NET   7.10.3077.0  
       MSVCR100.dll   Microsoft® Visual Studio® 2010   10.00.30319.1  
       MSVCR71.dll   Microsoft® Visual Studio .NET   7.10.3052.4  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop Elements Editor   11.0  
       platform.DLL   Adobe Help System   1, 0, 0, 1  
       Plugin.dll   Adobe Photoshop Elements Editor   11.0  
       PSArt.dll   Adobe Photoshop Elements Editor   11.0  
       PSViews.dll   Adobe Photoshop Elements Editor   11.0  
       ScCore.dll   ScCore 2010/03/05-08:21:15   61.423205   61.423205
       shfolder.dll   Microsoft(R) Windows (R) 2000 Operating System   5.50.4027.300  
       Tbb.dll   Intel(R) Threading Building Blocks for Windows   2, 2, 2009, 1011  
       updaternotifications.dll   Adobe Updater Notifications Library   2.0.0.15 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   2.0.0.15
       WRServices.dll   WRServices Thursday January 21 2010 12:13:3   Build 0.11423   0.11423
    Required plug-ins:
       Accented Edges 12.0
       ADM 3.11x01
       Angled Strokes 12.0
       Auto Divide 11.0.0.0 (11.0 (20120830.r.32025))
       Average 12.0.2
       Bas Relief 12.0
       BMP 12.0.2
       Camera Raw 7.4
       Chalk & Charcoal 12.0
       Charcoal 12.0
       Chrome 12.0
       Clouds 12.0.2
       Color Halftone 12.0.2
       Color Variations 12.0.4 (12.0.4x001)
       Colored Pencil 12.0
       Comic NO VERSION
       CompuServe GIF 12.0.2
       Conté Crayon 12.0
       Correct Camera Distortion 12.0.2
       Craquelure 12.0
       Crop and Straighten Photos Filter 12.0.2
       Crosshatch 12.0
       Crystallize 12.0.2
       Cutout 12.0
       Dark Strokes 12.0
       Difference Clouds 12.0.2
       Diffuse Glow 12.0
       Displace 12.0.2
       Dry Brush 12.0
       Extrude 12.0.2
       FastCore Routines 12.0.4 (12.0.4x001)
       Fibers 12.0.2
       Film Grain 12.0
       Filter Gallery 12.0
       Fresco 12.0
       Glass 12.0
       Glowing Edges 12.0
       Grain 12.0
       Graphic Novel NO VERSION
       Graphic Pen 12.0
       Halftone Pattern 12.0
       Ink Outlines 12.0
       Lens Blur 12.0
       Lens Flare 12.0.2
       Lighting Effects 12.0.4 (12.0.4x001)
       Liquify 12.0.1
       Matlab Operation 12.0.4 (12.0.4x001)
       Mezzotint 12.0.2
       MMXCore Routines 12.0.4 (12.0.4x001)
       Mosaic Tiles 12.0
       Multiprocessor Support 12.0.4 (12.0.4x001)
       Neon Glow 12.0
       Note Paper 12.0
       Ocean Ripple 12.0
       OnEdge 1, 0, 0, 1
       Paint Daubs 12.0
       Palette Knife 12.0
       Patchwork 12.0
       Pen and Ink NO VERSION
       Photocopy 12.0
       Picture Package Filter 12.0.4 (12.0.4x001)
       Pinch 12.0.2
       Pixar 12.0.4 (12.0.4x001)
       Plaster 12.0
       Plastic Wrap 12.0
       PNG 12.0.2
       Pointillize 12.0.2
       Polar Coordinates 12.0.2
       Polar Coordinates 12.0.4 (12.0.4x001)
       Poster Edges 12.0
       Radial Blur 12.0.2
       Read Watermark 4.0
       Reticulation 12.0
       Ripple 12.0.2
       Rough Pastels 12.0
       Save for Web & Devices 12.0
       ScriptingSupport 12.0.4
       Shear 12.0.2
       Smart Blur 12.0.2
       Smudge Stick 12.0
       Solarize 12.0.2
       Spatter 12.0
       Spherize 12.0.2
       Sponge 12.0
       Sprayed Strokes 12.0
       Stained Glass 12.0
       Stamp 12.0
       Straighten and Crop Image 12.0.4 (12.0.4x001)
       Straighten Image 12.0.4 (12.0.4x001)
       Sumi-e 12.0
       Texture Fill 12.0.4 (12.0.4x001)
       TextureSelect 12.0.4 (12.0.4x001)
       Texturizer 12.0
       Tiles 12.0.2
       Torn Edges 12.0
       Twirl 12.0.2
       Underpainting 12.0
       Water Paper 12.0
       Watercolor 12.0
       Wave 12.0.2
       WIA Support 12.0.4 (12.0.4x001)
       Wind 12.0.2
       ZigZag 12.0.2
    Optional and third party plug-ins:
       Frame From Video 6.0
       Magic Extractor 12.0.4 (12.0.4x001)
       PhotomergeUI 12.0.4 (12.0.4x001)
    Plug-ins that failed to load: NONE
    Installed TWAIN devices: NONE

    Final Update: ...god willing...
    OK! Check it, like I said in previous posts I seemed to have narrowed it down to specific mp3s not converting and playing in their native sample rate which if paired with another sample would give you the "audio midi sync" error and basically screw up your clock! It appears mp3 files converting to mp3 using iTunes would not convert to the correct sample rate if set to something other than 44 in logic and cause this. A tad peculiar Apple iTunes won't work with Apple Logic. I was able to confirm this on two mac's via my friend in Florida. He's running Tiger and tried the same experiment and Booya! Mickey Mouse! It appears this insane week long adventure has came to an end (...god willing) with a super specific unlucky shot in the dark on my part finally revealed to be an perfectly normal function of Logic (obviously one i'm not fond of..) As far as the errors / crashes / system overloads / kernal panics I think I can sort those out to the mackie onyx satellite not being a good choice and trying to add and remove firewire devices in the middle of the sample rate mayhem. Wow! all I can say is, I'm glad it's over
    Wish me a lot of luck in the future.. I'm sure i'll need it!

  • Preventing drag and drop

    I've been working very hard to keep my play lists organized and every so often I'll accidentally drag and drop one play list into another. Is there a way to stop this from happening? I like the power to be able to drag groups of songs and such but I don't want to be able to just click on a play list's name and drag and drop it into another one. Any suggestions would be appreciated.

    There is no way to prevent it, and no "Undo" if you do it accidentally. Sorry.
    As an experiment, go to your Settings in Control Panel and try a lower pixel count. This may make the display and associated mouse operations a bit less error-prone.

  • Prevent drag and drop for QT web movies

    I've tried protecting QT movies on my web site using kioskmode, like this:
    http://www.apple.com/quicktime/tutorials/embed2.html#kioskmode
    but despite what Apple says, drag and drop remains enabled. Anyone know how to fix that?
    conran

    If your goal is to "protect" your videos the kioskmode="true" tag will be the weakest link.
    http://streamingmediaworld.com/gen/voices/praja/praja1.mov
    You can open and save the file using the Safari (or any other browser) by using the Safari Activity window.
    You can also download by dragging the link to the Download window.
    I use the Save As Un-Editalbe droplet on some of my files. Needs some work to run on a Tiger OS and you can email me for a copy that is Tiger "ready". Screen name (left) @ mac.com.
    But I still don't understand how drag and drop works if the file is "protected" via kioskmode="false" tags.

  • Drag and drop a image from html page into flex

    how can i drag a image form the html page and drop it into
    the flex application.

    Hi,
    There's no direct support for this. But you could implement
    drag and drop the way you normally would in javascript. Except
    here, on mouseUp over a div encapsulating the object or embed tag
    (the flash object), you'll need to make a call into actionscript
    from javascript indicating that a drag and drop happened.
    For more info, see
    how
    to drag and drop using javascript and
    actionscript
    and javascript communication

  • Drag and Drop of Page from Content Finder into Page Component

    Hi,
    Does anybody has a sample code for Page component which accepts the page when dragging and dropping from the content finder? Basically I am trying to create a web page with page component on it and customized the content finder to display all the pages that I needed on a separate tab, I am trying to drag and drop the pages from the content finder to the page component of the web page that I created, but it is not working for me. If someone has any sample working code please share it.
    Thanks

    Hi,
    There's no direct support for this. But you could implement
    drag and drop the way you normally would in javascript. Except
    here, on mouseUp over a div encapsulating the object or embed tag
    (the flash object), you'll need to make a call into actionscript
    from javascript indicating that a drag and drop happened.
    For more info, see
    how
    to drag and drop using javascript and
    actionscript
    and javascript communication

  • Drag and drop install

    I have had problems installing updates of a couple of third party programs from the .dmg file using drag and drop, i.e. NoteBook and FireFox. I get the following message when I first try to drag the apps to the Application folder on my HD:
    The operation cannot be completed because you do not have sufficient privileges for some of the items.
    After logging in and out or restarting, I get this message when I try again:
    The operation cannot be completed because the item "Contents" is in use.
    I have repaired permissions several times, run Cocktail, downloaded 2 new copies of the FireFox .dmg, and unlocked the login keychain (something I often have to check and do manually), but no luck. I did manage to install the update to NoteBook by dragging the older app to my home folder (not the Applications folder in my Home folder) and replacing it with the new one there. I cannot, however, do that with FireFox - I have tried. What's going on?
    Mac mini Intel Core Duo 1.66 GHz   Mac OS X (10.4.8)   2X 256 MB DDR2 SDRAM 667 MHz
    Mac mini Intel Core Duo 1.66 GHz   Mac OS X (10.4.8)   2X 256 MB DDR2 SDRAM 667 MHz
    Mac mini Intel Core Duo 1.66 GHz   Mac OS X (10.4.8)   2X 256 MB DDR2 SDRAM 667 MHz

    susanabra,
    I had the same issues with Firefox you did. Here's how I solved them:
    1. Made sure any other users on my machine had quit the old version of Firefox.
    2. Removed the dock icon for Firefox (grab it and release on desktop to 'poof it')
    3. Closed any open Firefox windows and quit the app (had the same issue where I installed to my desktop as well)
    4. Moved the desktop install of Firefox 2.0 as well as the Firefox 1.5.x from Applications folder to Trash and emptied it.
    5. After this point the drag and drop from the Firefox install DMG file worked fine.
    Hope this helps you or someone else.
    -Mike
    PS: This only occurred on my iMac, the MacBook seemed to work okay IIRC.
    iMac G5 2Ghz 20inch, Macbook 2Ghz white   Mac OS X (10.4.8)   1.5GB RAM (iMac) 1.0GB RAM (Macbook)

  • Drag and Drop of cell content between 2 tables

    Hi Guys,
    Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
    Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler" under http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo to satisfy my needs.
    The drag is enabled for Table1 and table2 as follows.
    jTable1.setDragEnabled(true);
    jTable1.setTransferHandler(new TableTransferHandler());
    jTable2.setDragEnabled(true);
    jTable2.setTransferHandler(new TableTransferHandler());
    Dont be taken aback with the code I have put.It just to show what I have done..
    My questions are put at the end of the post..
    //String Transfer Handler class.
    public abstract class StringTransferHandler extends TransferHandler {
        protected abstract String exportString(JComponent c);
        protected abstract void importString(JComponent c, String str);
        protected abstract void cleanup(JComponent c, boolean remove);
        protected Transferable createTransferable(JComponent c) {
            return new StringSelection(exportString(c));
        public int getSourceActions(JComponent c) {
            return COPY_OR_MOVE;
        public boolean importData(JComponent c, Transferable t) {
            if (canImport(c, t.getTransferDataFlavors())) {
                try {
                    String str = (String)t.getTransferData(DataFlavor.stringFlavor);
                    importString(c, str);
                    return true;
                } catch (UnsupportedFlavorException ufe) {
                } catch (IOException ioe) {
            return false;
        protected void exportDone(JComponent c, Transferable data, int action) {
            cleanup(c, action == MOVE);
        public boolean canImport(JComponent c, DataFlavor[] flavors) {
              JTable table = (JTable)c;         
             int selColIndex = table.getSelectedColumn();
            for (int i = 0; i < flavors.length; i++) {
                if ((DataFlavor.stringFlavor.equals(flavors))&& (selColIndex !=0)) {
    return true;
    return false;
    }//TableTransferHandler classpublic class TableTransferHandler extends StringTransferHandler {
    private int[] rows = null;
    private int addIndex = -1; //Location where items were added
    private int addCount = 0; //Number of items added.
    protected String exportString(JComponent c) {
    JTable table = (JTable)c;
    rows = table.getSelectedRows();
    StringBuffer buff = new StringBuffer();
    int selRowIndex = table.getSelectedRow();
    int selColIndex = table.getSelectedColumn();
    String val = table.getValueAt(selRowIndex,selColIndex).toString();
    buff.append(val);
    return buff.toString();
    protected void importString(JComponent c, String str) {
    JTable target = (JTable)c;
    DefaultTableModel model = (DefaultTableModel)target.getModel();
    //int index = target.getSelectedRow();
    int row = target.getSelectedRow();
    int column = target.getSelectedColumn();
    target.setValueAt(str, row, column);
    protected void cleanup(JComponent c, boolean remove) {
    }Now I want to put in the following functionality into my program...
    [1]prevent dragging and dropping text in to the same table.That means I dont want to drag a cell content from Table1  and drop to another cell in Table1. Want to drag and drop cell content only from Table1 to Table2.
    [2]Change cursor on a un-defined Target. That means how to prevent a drag from a particular column in Table1.Also how to prevent a drop to a particular column in Table2. How to change the cursor to a "NO-DRAG" cursoror "NO-DROP" cursor.
    Could it be done using Drag Source Listener and drop Target Listener?.
    If yes,How can these listeners attached to the table and how to do it?
    If No,How Could it be done?
    [3]Want to change the background colour of the cell being dragged and also the background colour of the target cell where the drop is made...
    [4]Is there any out of the box way to make an undo in the target cell(where drop was made) so that the old cell value is brought back.
    How can I extend my code to take care of the above said things.
    Any help or suggestions is greatly appreciated.....
    Edited by: Kohinoor on Jan 17, 2008 10:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Guys,
    Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
    Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler" under http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo to satisfy my needs.
    The drag is enabled for Table1 and table2 as follows.
    jTable1.setDragEnabled(true);
    jTable1.setTransferHandler(new TableTransferHandler());
    jTable2.setDragEnabled(true);
    jTable2.setTransferHandler(new TableTransferHandler());
    Dont be taken aback with the code I have put.It just to show what I have done..
    My questions are put at the end of the post..
    //String Transfer Handler class.
    public abstract class StringTransferHandler extends TransferHandler {
        protected abstract String exportString(JComponent c);
        protected abstract void importString(JComponent c, String str);
        protected abstract void cleanup(JComponent c, boolean remove);
        protected Transferable createTransferable(JComponent c) {
            return new StringSelection(exportString(c));
        public int getSourceActions(JComponent c) {
            return COPY_OR_MOVE;
        public boolean importData(JComponent c, Transferable t) {
            if (canImport(c, t.getTransferDataFlavors())) {
                try {
                    String str = (String)t.getTransferData(DataFlavor.stringFlavor);
                    importString(c, str);
                    return true;
                } catch (UnsupportedFlavorException ufe) {
                } catch (IOException ioe) {
            return false;
        protected void exportDone(JComponent c, Transferable data, int action) {
            cleanup(c, action == MOVE);
        public boolean canImport(JComponent c, DataFlavor[] flavors) {
              JTable table = (JTable)c;         
             int selColIndex = table.getSelectedColumn();
            for (int i = 0; i < flavors.length; i++) {
                if ((DataFlavor.stringFlavor.equals(flavors))&& (selColIndex !=0)) {
    return true;
    return false;
    }//TableTransferHandler classpublic class TableTransferHandler extends StringTransferHandler {
    private int[] rows = null;
    private int addIndex = -1; //Location where items were added
    private int addCount = 0; //Number of items added.
    protected String exportString(JComponent c) {
    JTable table = (JTable)c;
    rows = table.getSelectedRows();
    StringBuffer buff = new StringBuffer();
    int selRowIndex = table.getSelectedRow();
    int selColIndex = table.getSelectedColumn();
    String val = table.getValueAt(selRowIndex,selColIndex).toString();
    buff.append(val);
    return buff.toString();
    protected void importString(JComponent c, String str) {
    JTable target = (JTable)c;
    DefaultTableModel model = (DefaultTableModel)target.getModel();
    //int index = target.getSelectedRow();
    int row = target.getSelectedRow();
    int column = target.getSelectedColumn();
    target.setValueAt(str, row, column);
    protected void cleanup(JComponent c, boolean remove) {
    }Now I want to put in the following functionality into my program...
    [1]prevent dragging and dropping text in to the same table.That means I dont want to drag a cell content from Table1  and drop to another cell in Table1. Want to drag and drop cell content only from Table1 to Table2.
    [2]Change cursor on a un-defined Target. That means how to prevent a drag from a particular column in Table1.Also how to prevent a drop to a particular column in Table2. How to change the cursor to a "NO-DRAG" cursoror "NO-DROP" cursor.
    Could it be done using Drag Source Listener and drop Target Listener?.
    If yes,How can these listeners attached to the table and how to do it?
    If No,How Could it be done?
    [3]Want to change the background colour of the cell being dragged and also the background colour of the target cell where the drop is made...
    [4]Is there any out of the box way to make an undo in the target cell(where drop was made) so that the old cell value is brought back.
    How can I extend my code to take care of the above said things.
    Any help or suggestions is greatly appreciated.....
    Edited by: Kohinoor on Jan 17, 2008 10:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • File can not be moved by drag and drop in the finder when not open Finder windows

    With the operating system OSX Snow Leopard, it was possible, for example, a file from the desktop to pull drag and drop on the Finder icon, the page opened after a short and you could put the file in a folder.
    At this stage I must first open the Finder to drag a file into the destination folder.
    Is it a setting or is there anything wrong with my Mountain Lion properly?
    It is often the case that several windows of other applications are open or in Fullscreen are, then I would, as I also already knew and am accustomed, for example a file regardless of the location from which drag drag and drop in the Finder without leaving the / program / ​​site to open the Finder, before returning to the file then select I wanted to move.
    Note: For all other programs it works.
    Finder not only in where it makes the most sense.
       Picture 1: Finder window opens when you drag a file to the Finder icon
       Picture 2: Finder icon flashes but the Finder window does not open. Finder windows have previously by clicking on the icon in the Dock will be open to pull a      file into it.
       Thanks in advance for your help :-)

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • How can I get drag and drop to work again in iphoto11?

    I have created a photo book in iphoto 11 (version 9.3.2) on my imac running os 10.7.5.  The drag and drop feature suddenly quit working. I cannot drag/drop photos from an event into the photo book OR within the photo book.
    I've restarted the computer to no avail. I've also quit and restarted iphoto.
    When I run Console, I see the following errors: iphoto: coredragcrete error -4960 and error in coredragdispose -1850
    What should I do to get my drag and drop working again?

    Repair permissions with Disk Utility.

  • Any fixes for drag and drop not working in WAD with IE9?

    I have exactly the same issue as is described in WAD Problem - can't modify and Drag&drop in Web App Designer (WAD) doesn't work but unfortunately I don't have the option of going from IE9 back to IE8.  Has anybody found a fix for using drag and drop in WAD with IE9?
    Edited by: Jason Muzzy on Jul 22, 2011 1:09 AM

    Hi Jason,
    Thanks for replying .
    But I am facing this isssue in Web Application Designer. The link which I have shared shows the behavious of cursor while dragging and dropping
    Drop not allowed ("blocked traffic" sign)
    Drill across (arrow pointing to the right)
    Drill down (arrow pointing down)
    Exchange dimensions (exchange icon)
    Add to filter (add icon)
    Remove from filter (remove icon)
    Reorder list (reorder icon).
    This issue I am getting in Web Application Designer itself.In WAD 7.X ANALYSIS TABLE do we have any option from which we can disable drag and drop of cells because it is destroying the view of report output .
    In WAD 7.X we have option of Activate Navigation in ANALYSIS TABLE but if we disable this our context will get disable and it shows the default Browser context menu.We have not provided any such options so that its original layout will retain back .
    The solution they have mentioned to Disable Drag and Drop is not available in WAD ,its available in Analyzer.
    Please let me know if you have found any solution for this.

  • Premiere Pro CS3: Can't drag and drop into project window

    I had been using PP CS3 with Windows 7 64-bit RC successfully for about half a year. Recently I did a clean install of the final, released version of Win 7, and now I cannot drag and drop into the project window.
    I am sure I used to be able to do this. Having to import every clip, instead of just dragging it from Bridge (CS4), is a major headache. Ok, a minor one. But is there anything I can do to regain this capability?
    Thanks,
    Ken

    Can I mark my own post as a "correct answer"? 
    I just discovered the problem isn't PP CS3 at all.
    The problem is Bridge CS4. Or, more accurately, how I am running it.
    In order to do drag and drop from Bridge, it needs to be executed in "Run as administrator" mode.
    So, fantastic! There is an quick, easy solution that works.

  • After installing iTunes 10.5.1, I can no longer drag and drop files into iTunes. Any suggestions?

    Basically when I try to drag files from a folder into iTunes, (drag and drop within iTunes is fine) the little picture of the circle with a slash through it shows up and wont allow me to drop it into iTunes. Does anyone know why this is happening and what I can do to fix it? Thanks. I'm so frustrated I'm about to smash my computer. I've tried uninstalling and reinstalling, restarting my computer, everything I can think of.

    just want to add my annoyance to the pile here. I can't see any logic behind removing the drag and drop function, especially when adding a new folder is now a multi-step process that is far from obvious. to start a new playlist with local folder content you now need to:enter settingsclick into advanced settings (basically all settings now seem to be "advanced"?)manually find and add the foldergo through the adventure of finding the files in your library.
    -- because they may or may not be listed under "local files" - you won't know because Ctrl+F is also removed. so you have to remember/know what the album you added is called and search for that. if you have a mixed bag of file names from various albums, you're basically shafted; there's no way to find them all with a single search.then you can add them to playlisteta: but wait! there's more! if you have more than 15 files? you're **bleep** out of luck, because the search will only display the first 15 hits among your local files, and then show you spotify library tracks.I can't help but feel as though spotify is doing everything they can to stop us using spotify to listen to local files, as bugs that make it more or less impossible persist through multiple versions - and now features that seem to me to be basic functionality are being removed?mega minus points from someone who's been using spotify since 2008.

  • Canno drag and drop, copy or paste, adobe crash!!

    Hi. I got a Mac Book Pro Intel Core 2 10.5.8 from this morning i cannot drag and drop any files, I cannot copy or paste anything, anywhere. I've tried to fix permission, and disk but everything was worthless, any idea?

    try this http://support.apple.com/kb/ht1379

  • Wacky Drag and Drop issue with JNLP

    I'm sure I'll have to be a bit more descriptive but I'll just throw this out and see if anyone has any suggestions.
    I've got a swing app which is an administration tool to a rules engine I have built. I distribute the app to users using JNLP 1.2.
    Here's the problem. When I launch the app using JNLP, a portion of the app does not work. There is a panel in which I allow users to drag items off of a tree and onto a panel. They can drag and drop one item but when they attempt to drag and drop a second item it doesn't drop. If I take that same code which is being distributed via JNLP, copy it to the local machine and run it, it works. I can drag and drop all day long.
    There are no exceptions, no errors or funny gooey state things going on. I start the drag, the mouse pointer changes, I hover of the drop zone and let go of the mouse and it appears to drop, but the component does not show. Wacky.
    Does this set off any bells to anyone?
    Thanks,
    - Jay
    App compiled using 1.4.1_01.

    Ah ha.. Yes this does seem to the issue. Thanks for the response. I've tested it on a couple of machines and it works on the one's with 1.4.1 and it doesn't seem to work on 1.4.0 jre machines.
    NEW Question though, if I set my .jnlp to:
    <j2se version="1.4.1+"/>
    I get the 'ol 'Error Code 11 (11 Could not locate requested version'
    Is there any way to get this guy to auto-install???
    I've installed JRE 1.4.1 manually and it doesn't seem to pick that up either.
    Thanks...

Maybe you are looking for

  • Moving mail to folders - is it possible to type the name of the folder, vs scrolling?

    Apologies in advance if there is already an answer to this question in the forums; I searched with every combination of the subject I could think of... Context: my iPhone 4 syncs with an IMAP mail server.  I have lots of folders on the server, and I

  • How to add link with mp3 to iTunes library?

    I purchased a song which is actually a link ending in mp3. I want to save it to my itunes library, but when I highlight and right-click on it, it only gives me the option to "save as itunes spoken word." Also how do I make itunes as my default audio

  • Copy/Cut & paste website information. E7.00

    Just a quick question: Is it possible to cut/copy & paste information on a website on E7? I'm asking as there are times when using the web (say on FaceBook) that I'd like to copy something to use as a update to my page but I can't find any informatio

  • Send the report instance in a PDF format as an email

    hi all, We have Crystal Reports Server 2008 V0 and it runs on Tom Cat. How do I send the instance of a report in a PDF format as an email? I know i need to configure the destination of the Job Server, but which one do I configure? CrystalReportsJobSe

  • I want to change the time line in Audition CS6 to display a 24hr time

    I have a file I need to aline to a particular time in a 24hr time format. I can see that I can change it many ways to do with music and video but I use Audition for a different purpose. I need to set the time line to display something similar to a 24