Enable drag support at JTree jdk1.4.1

Hi,
I have problems to activate the drag support with own TransferHandler at JTree. When I only activate with setDragEnabled(true) it works fine, but drags only the text from node. I'll drag my own class. So I create an TransferHandler myself. But when I activate this with setTransferHandler(new MyTransferhandler()) and MosueAdapter exportAsDrag() it doesn't work. The exportAsDrag doesn't invoke any drag behavior.
A simple example like this below doesn't work too. But why ?
TIA
Dirk
treecomponentType.setTransferHandler(new TransferHandler("text"));
MouseListener ml = new MouseAdapter() {
public void mousePressed(MouseEvent e) {
JComponent c = (JComponent)e.getSource();
TransferHandler th = c.getTransferHandler();
th.exportAsDrag(c, e, TransferHandler.COPY);
treecomponentType.addMouseListener(ml);

I think the problem is the !GraphicsEnvironment.isHeadless() request in exportAsDrag. Ihis will cause the skip of dragging. But how to correct the problem ?

Similar Messages

  • Added drag support breaks drop support

    I have a Swing app (running on WIndows), which consists mainly of a Jtable with a list of files in it, one file per row. I wanted to be able to open files in the JTable using drag and drop, so Ive created a subclass of DropTarget and set it for my frame with setDropTarget() and it works fine, I can now drag and drop files from Windows Explorer. I set the drop target for the frame rather than the table because I wanted the user to be able to drop the files anywhere on the application.
    I then wanted to add dragging files from the Jtable to other applications to be able to make copies of the file. So I setDragEnabled() on the table and setTransferHandler() on the table and created appropriate TransferHandler and Tranferable subclasses. Now I can can drag files from the table ok, but unfortunatelly I can no longer drop files onto the frame, it just shows the no-entry sign when I try to. I don't see why enabling drag support in the table breaks drop support in the frame, but it does - what am I doing wrong?
    thanks Paul

    paultaylor wrote:
    setTransferHandler() on the table ... I can no longer drop filesTry overriding "importData" in TransferHandler.

  • Enabling NTFS Support On OSX 10.8.5

    I will use HFS+ for Time Machine backups.  However, I still need to share files between the Windows and Mac world. 
    For Windows, I use a portable disk drive that I just drag and drop files to for backup.  This is sufficient for my backup needs.  I'd like to be able to access this drive for both read and write from the MAC, just as I do now with a thumb drive.  I found the following article on this topic:  http://reviews.cnet.com/8301-13727_7-57588773-263/how-to-manually-enable-ntfs-re ad-and-write-in-os-x/
    It states ".... however, OS X does support writing to NTFS, but this feature is just not enabled by default." 
    It then goes on to describe how to do this "... to enable this feature, you have to do so on a per-volume basis, by editing the system's hidden fstab file to adjust the way the drive is automatically handled when attached and mounted. ......."  See article for details.
    The article also notes "Keep in mind that the writing ability of Apple's NTFS driver has not been thoroughly tested, and though this will enable write support using Apple's driver, there may be some limitations or unknown behaviors with the driver, so use it with caution"
    As noted, I will use it to access the NTFS drive for read and write from both Windows and Mac.  Just drag and drop.
    1. Has anyone else used this feature?  I know there are third party solutions, but I'd prefer using this if it works.
    2. If so, what limitations or unknown behaviors have been seen?
    3. When I talked with Apple tech support yesterday, they suggested I go to an Apple store and get assistance from the 'genius bar' for implementing the steps.  As the person noted, one bad keystroke entry could mess up my system.  Good idea!   Is there any reason why the Apple store might refuse to assist me?
    Thanks,
    signed - trying to bridge the 2 worlds

    See below, use paragon
    OR TUXERA for Mac for NTFS:
    http://www.tuxera.com/products/tuxera-ntfs-for-mac/
    FORMAT TYPES
    FAT32 (File Allocation Table)
    Read/Write FAT32 from both native Windows and native Mac OS X.
    Maximum file size: 4GB.
    Maximum volume size: 2TB
    You can use this format if you share the drive between Mac OS X and Windows computers and have no files larger than 4GB.
    NTFS (Windows NT File System)
    Read/Write NTFS from native Windows.
    Read only NTFS from native Mac OS X
    To Read/Write/Format NTFS from Mac OS X, here are some alternatives:
    For Mac OS X 10.4 or later (32 or 64-bit), install Paragon (approx $20) (Best Choice for Lion)
    Native NTFS support can be enabled in Snow Leopard and Lion, but is not advisable, due to instability.
    AirPort Extreme (802.11n) and Time Capsule do not support NTFS
    Maximum file size: 16 TB
    Maximum volume size: 256TB
    You can use this format if you routinely share a drive with multiple Windows systems.
    HFS+ ((((MAC FORMAT)))) (Hierarchical File System, a.k.a. Mac OS Extended (Journaled) Don't use case-sensitive)
    Read/Write HFS+ from native Mac OS X
    Required for Time Machine or Carbon Copy Cloner or SuperDuper! backups of Mac internal hard drive.
    To Read HFS+ (but not Write) from Windows, Install HFSExplorer
    Maximum file size: 8EiB
    Maximum volume size: 8EiB
    You can use this format if you only use the drive with Mac OS X, or use it for backups of your Mac OS X internal drive, or if you only share it with one Windows PC (with MacDrive installed on the PC)
    EXFAT (FAT64)
    Supported in Mac OS X only in 10.6.5 or later.
    Not all Windows versions support exFAT. 
    exFAT (Extended File Allocation Table)
    AirPort Extreme (802.11n) and Time Capsule do not support exFAT
    Maximum file size: 16 EiB
    Maximum volume size: 64 ZiB
    You can use this format if it is supported by all computers with which you intend to share the drive.  See "disadvantages" for details.

  • Enable XA support in Oracle DB version 10.2.0.1 in prep for OIM installatio

    Trying to setup a development environment for OIM. One of the pre-reqs is to install an Oracle DB and prepare it for use by OIM.
    I installed Oracle DB 10.2.0.1 on Windows 2003 R2 server and I have run the prepare_xl_db.bat script to prep the DB. However when I run the OIM diagnostic
    dashboard to test the database. It fails and says that XA support is not enabled on Oracle DB. I ran the initxa.sql script , in order to manually enable XA
    support and I got a message saying the procedure executed successfully. However I also get a message saying that "Package created with compilation errors".
    Has anyone encountered the above problem before? How did you resolve it so that XA sypport is enabled which would result in the successful result for the OIM
    diagnostic dashboard test on the DB?

    Ankit - where can I find this compilation error? I used SQLPlus to run the initxa.sql+ script. Prior to running the initxa.sql script I had granted access to the user account(oimdevuser01) I created for the DB and by running the following query grant javauserpriv to oimdevuser01+;

  • BO XI 3.1 Security - Enable drag and drop

    Hi,
    I am trying find out how to enable "drag and drop" for the webi reports in Infoview.
    What are the main settings in access levels or profiles needs to be done ?
    Also, I am wondering if we can do some settings for enabling developers to use import wizard-client tool.
    Any suggestion from soem experts...?

    You can do "drag-n-drop" in the Java Report Panel. But you cannot "drag-n-drop" report objects from folder to folder which is a poor design in my humble opinion. ASUG (America's SAP Users' Group) is starting several Influence Councils this year. If you are interested in voicing your constructive opinion and suggestion to the Product Managers, please go to asug.com to find out more information and to sign up.
    As of Import Wizard, it is an administrator tool and should be restricted to administrators only. Making it available to developers/users is asking for trouble. It will lead to total chaos.

  • [svn:fx-trunk] 10600: Adding drag support to List - dragInitiator.

    Revision: 10600
    Author:   [email protected]
    Date:     2009-09-25 13:38:22 -0700 (Fri, 25 Sep 2009)
    Log Message:
    Adding drag support to List - dragInitiator. Currently can't drop the dragged items yet.
    - ListItemDragProxy class - default drag proxy for List (through a new style "dragIndicatorClass")
    - Added dragEnabled, dragMoveEnabled properties to List
    QE notes: Dragging from List is now possible. Dropping to different containers will come with subsequent check-in.
    Doc notes: None
    Bugs: None
    Reviewer: Ryan
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDrag Proxy.as

  • Is WebEx Enabled TelePresence supported with Expressway Core and Edge?

    Is WebEx Enabled TelePresence supported with the Expressway Core and Edge instead of using a VCS Control and Expressway? This is one thing I'm not sure of, as the scheduled conferences will have to register to the Expressway Core and wasn't sure if this was possible.

    Hi,
    It is supported, see the following release notes here:
    http://www.cisco.com/c/en/us/td/docs/telepresence/infrastructure/tms/release_note/cmr_hybrid_RNs_14_4.html#pgfId-164481
    Expressway-E/C use is also covered in the deployment guide:
    http://www.cisco.com/c/dam/en/us/td/docs/telepresence/infrastructure/tms/config_guide/cmr_hybrid_config_guide_tms_14_4.pdf
    -Jonathan
    Edit - links

  • How to enable Matlab support in Photoshop CC?

    How to enable Matlab support in Photoshop CC? I've downloaded zip-file with dylib and m-scripts, however it does not work.
    By the way, app.featureEnabled("MATLAB") return false in standalone jsx-script, so I believe it's a Photoshop confiruration issue (I found some suggestion _for previous_ versions, that it can be caused by non-exteneded Photoshop version).
    What can I do?

    Yes, it'is the place where I've downloaded Matlab "plugin".
    Interesting, that Matlab can not start Photoshop CC via pslaunch — Photoshop crashes. However, Photoshop can be launched manually, but calling psmatlab.dylib from Matlab does not work.
    It's unfortunate that I can not migrate to Photoshop CC (I've used CS5 before and corresponding Matlab integration worked like a charm). It is possible that Photoshop CC has some "forgotten" Matlab-compatibility option that should be switched on?
    It seems weird that app.featureEnabled("MATLAB") return false in Photoshop CC (in returns true in Photoshop CS5 Extended).

  • Loaded latest version of itunes now can't find device for ipod to enable dragging tunes?

    Just loaded latest version of itunes but can no longer see ipod device in left column to enable dragging tunes?

    Hello remslicer, I just did this and it seems to work, I had the exact same problem and I just read what to do on another users reponce,
    I re-set my phone
    hooked up the phone to my computer,
    let it do its syncing, 
    then I went to podcast page and un-sync and I did this with music as well, and hit apply.
    go back and re-sync and hit apply again.
    I went to the app and it started playing the podcast I have saved on my desk top.
    I  hope this works for you too. Good luck

  • Enable unicode support

    I have nokia 6500 slide model phone.
    How I can enable unicode support for reading "jar" file in regional language, especilly in malayalam language

    It is not just about enabling Unicode support (and for all that matters, the phone might already have full Unicode support).
    It is a case of having the correct fonts as default/system fonts for displaying the characters.
    On S40 based models, you cannot install your own font files to replace system/default fonts.
    So, if you want to read/see malayalam language content, and the phone does not support it, you can try a Nokia repair center in case there is a firmware version with support for that language, or you can change to some other phone model which supports the language, or supports installable font files.

  • [svn] 3624: Enabling initial support for colorTransform in GraphicElement.

    Revision: 3624
    Author: [email protected]
    Date: 2008-10-14 08:35:30 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Enabling initial support for colorTransform in GraphicElement.
    Bugs: MXMLG-241
    Check-in Tests: Pass
    Reviewer: Chet, Ryan, Jason
    QA: Yes
    Ticket Links:
    http://bugs.adobe.com/jira/browse/MXMLG-241
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    I guess GraphicElement will never support automation, at least by the time of Flex 4 release.
    During my tests with GraphicElement extending IAutomationObject interface, I've just hit RTE coming from closed-source mx.automation.AutomationManager class requesting the automated UI control to implement IUIComponent interface, and obviuosly GraphicElement class does not implement this interface
    TypeError: Error #1034: Type Coercion failed: cannot convert GraphicElementAutomation@7b10e19 to mx.core.IUIComponent.
         at mx.automation::AutomationManager/getChildren()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1157]

  • Should I enable trim support on Crucial M4 512?

    I've got a Macbook Pro 10.8.2 , mid 2010 , with a Crucial M4 512 SSD installed.
    Is there a benefit in trying to enable trim support?
    Thanks, Jon

    I also wasn't impressed. Sometimes hangs etc.
    I enabled trim and now everything seems faster. May be the reboot.
    I tested performance before and that seemed good for copying a file or so, but not for lot's a file access.
    I ran in 1 terminal : iostat -d 1
    in another : mkfile 1g empty
    cp empty empty2
    that looked great.
    anyways, happy with trim now.

  • Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml

    Hi  All,
    we are not able to connect to Live office to our server . URL is  not authenticated in Excel and  if we place same url in browser ,we are getting below error message.
    "Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml"
    we couldn't able to rest the same after changing settings in axis2 file also.
    Any solution where we can configure in CMC or any files
    Regards
    Mahesh

    Hi Mahesh,
    As mentioned by Abhilasha, this is the expected behavior.
    In order to validate you could place the following URL in the browser.
    http://servername:portno/dswsbobje. you would see Tomcats home page which will display the list of Services.
    As far as the Live office in Excel is concerned , If you are getting a yellow  exclamation mark stating (Web service not correct) next to Session URL, try changing the servername to IPaddress of the server.
    Eg: http://ipaddress:portno/dswsbobje/services/Session
    While inserting the Session URL in the Live Office settings confirm the URL as per above.
    If the issue still persists, you could configure the host file entry in you client machine.
    Let me know if the information is helpful.
    Regards,
    Noopur

  • If I get one of the Toshiba SSDs and put it in my 2011 MBP, will it auto enable trim support?

    If I get one of the Toshiba SSDs and put it in my 2011 MBP, will it auto enable trim support?

    It is outrageous that Appe deliberately does not enable TRIM support native to the OS to non Apple SSD drives automatically. Even worse is to cancel it after an update of the OS.
    It is forcing anyone who does not add up to your greedy aftersales target to eventually experience trouble with their non Apple drives.
    It is monopoly, isn't it?
    It does also sounds petty, very disgusting from such a reputable company.
    I love Apple but they do not need to go down such length to whatever are their aims.
    Very disappointed to find out that the TRIM support I enabled prior to the update 10.9.3 is now disable.
    Simply unbelievable!

  • Dragging within a JTree

    Hi,
         I have a JTree and I want to enable the possibility of dragging from one node to another, but I do not want the ability to drag and drop anything external.
    I think my problem would be easier to explain in the context of a JTree showing the contents and sub-contents of a directory. I need this JTree to have the ability to drag a file from one sub-directory to another. I also need the ability to drag a certain Sub-Directory and all the files underneath to another location in the JTree. I however do not want dragging anything external like files or text from outside the JTree to in the JTree as they do not make sense in my case.
         What is the easiest way to do this? I was looking at [Default DnD Support|http://java.sun.com/docs/books/tutorial/uiswing/dnd/defaultsupport.html] and it seems to say that some support is in place, but I need to write some of the code? I did not understand what I needed to do. I have setDragEnabled(true) to true for the JTree.
    I’d be grateful to someone who would guide me.
    Thanks,
    O.O.

    Thanks fun_with_me for the links. (I had got the last link, but the first two are new to me.)
         While they provide good examples of what needs to be done, I am trying to understand what is the basic amount of code needed to get this to work. The examples out there seem to be from Java 1.3 or 1.4. I am wondering if there are better ways to do this in Java 5 or 6?
         As far as the Tutorial in [Default DnD Suppor|http://java.sun.com/docs/books/tutorial/uiswing/dnd/defaultsupport.html] I could not understand the last two paragraphs where they say that the JTree needs some custom code, and that code is fairly minimal.
    I hope someone has some ideas
    O.O.

Maybe you are looking for

  • Price of goods mvt will become negative

    Hi exeperts, While doing goods receipt MIGO I am getting error that "Price of goods mvt will become negative"  As I analysed the purchase order is account assignment  "K" PO and in material master no value exist with moving average price 0.  Please l

  • Dynadock U3.0 - Not able to use Ethernet port after Win 8.1 update

    Hi everybody, i am using a Dynadock u3.0 dock with my Vaio SCP 13. Since I updated my device to Windows 8.1 Update 1 I am not able to use the Ethernet port of the Dynadock. Before that everything worked fine. I am not able to reinstall the drivers co

  • How to avoid focus issue while navigating via Browser Back button

    Hi I'm facing some problem in setting focus on Buttons. Please refer application: http://apex.oracle.com/pls/otn/f?p=47869:2 login credentials: Workspace: vsanthanam user: vijay pswd: apex_demo In this application, i have 2 pages. Page#2 has Submit b

  • Photoshop CC won't save files after update

    i just let Adobe do an update to photoshop CC last night, and now this morning, when i go to create files and save them for use in premiere CC, they don't save. i click save, save as, ctrl+S, they just don't do anything. they don't bring up the save

  • Use of Logbook in SAP Plant Maintenance

    Hi Experts, Can anybody tell me the use of Logbook in SAP PM module. How can we activate this ? Is there any specefied procudure for the same? Thanks in advanve VT