Drag/drop into JTable inside JScrollPane

Hello,
I have a table inside a JScrollPane. I can set the table as the DropTarget by the command:
new DropTarget(table,fileDropTargetListener);
but I cannot set the JScrollPane be the DropTarget by the same command.
the problem is that: I cannot set the table to fit the JScrollPane by the command setsize(scrollPane.getSize() ), setPreferedSize(scrollPane.getPreferedSize()), (don't know for what reason, they don't work to fit the scrollpane), therefore when user drags an item to the JScrollPane but outside the table, the drag gesture doesnot display.
Please anyone help me how to solve this problem. Thank you,
fantabk

Yes, I use custom cell renderer and cell editor for ParentTable, which returns NestedTable.
DnD turned on for the ParentTable, so when the NestedTable is active (some cells selected in it) it receives DnD events, which are turned off for it, and DnD doesn't work.
Possible solution is to turn DnD for NestedTable (not for ParentTable), and i'll do this if it is impossible to make it work in current configuration.
So the question is � is this possible do not pass DnD event to NestedTable ?

Similar Messages

  • My videos played fine until my pc crashed  now i cant get them back in itunes they play in quicktime and the formats havent changed. they wont drag drop into i tunes or using add file.

    I run winxp my pc crashed had to reboot. my video files are saved on an external hard drive.  they have all played fine in itunes before. the formats are all correct. now i cant get them back into itunes neither drag and drop or add file to itunes works. i checked the files and when you click on them they still play in quicktime. anyone have this??

    Repair your QuickTime.
    Control Panel > Add n Remove Programs > highlight QuickTime, click CHANGE then REPAIR.

  • Excel Sheet Drag & Drop into Java Application Q

    New to this forum. Have a question regarding the ability to drag and drop an Excel Sheet from an open Excel file onto a Java application. A friend has been able to drag and drop an Excel file from Windows Explorer onto a Java application and then read the sheets to select what you want and display/use the information in a particular sheet, I'd like to take it a step further to so that the user has the ability to be working in Excel and then drag and drop individual sheets into a Java application as they desire. Is this latter option possible?

    Hi,
       Hope the below links helps...
    Re: upload & download files 
    https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
    Thanks,
    Prakash

  • HT1347 I just bougt Mp3 files lectures and can't drag/drop into my i Tune playlist. How do you do that?

    I just bought MP3 files lectures and they are on my desktop. How do I put them in Itune as a play list? I tried drag and drop but it is not doing it.

    I just bought MP3 files lectures and they are on my desktop. How do I put them in Itune as a play list? I tried drag and drop but it is not doing it.

  • Just help with Drag & Drop into Backup

    I would like to know what does a person do manually for using a backup hard drive.
    Do I ... Drag and drop which of the following that will give me my all my stuff back - if my stuff is lost for some reason ..
    Do I drop and drag the Application Folder, The Library Folder, The System X folder .... or which if not those ?
    Thanks

    Usually, a roll-you-own Clone works the best; since a good one
    will allow you to boot the computer from the clone, for backup,
    repair of main internal drive, and troubleshooting; large enough
    one, can also be partitioned and part of it used for storage.
    • Carbon Copy Cloner:
    http://www.bombich.com/index.html
    • SuperDuper:
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    On an externally enclosed hard disk drive,
    with its own power supply; for most Macs.
    ie: http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATAFW800_FW400USB
    These should all be able to work to complement Time Machine, but do more.
    A backup clone can get you up and running; and you can do complete or a
    partial clone (backup changes) however a complete bootable one is best...
    System parts should generally not be drag n dropped. Some backup libraries
    of iTunes and iPhoto have their own rules for archiving or storage/retrieval or
    use from an externally enclosed hard drive location.
    Good luck & happy computing!

  • Contacts V-Cards no longer drag & drop into emails

    So I noticed this problem this morning and now friends are having the same problem.  Everyone having the problem upgraded to Mavericks.
    If you drag a contact into an email to send a V-Card (or multiple V-Cards) the file that attaches is corrupt.  The V-Card is there but it's Zero KB's and won't open.  It seems the work around is using the share button and then dragging it from the email or message window into the email.
    Anyone know the solution?

    And the problem is not restricted to Snow Leopard, I see it on Lion, too.
    While we are waiting for Apple to fix the problem, look at this thread for some work arounds, like importing from the Media Browser or revealing the song in the Finder and dragging it from there to GB: https://discussions.apple.com/message/15858348#15858348

  • Can't drag & drop into playlists.....

    ...not exactly true but can't multi-pick (ie left click whilst pressing ctrl button) more than 4-6 songs at a time to add to a playlist. When i try to pick more i get a short tone noise. Very frustating. Anyone? Thanks.
    hp f1523 40gb   Windows XP  

    I have about 50 playlists that I created as playlists and have always been able to add songs to as I purchased them. The lists were originally created as regular playlists. Then, one day I opened up iTunes and all the existing playlists I had created as playlists, and has always added songs to, had the "gear" symbols and acted like genius playlists. How can I change them back and why did this happen...any ideas?

  • JTable inside JScrollPane

    When i'm in the last column and press enter i want to get the focus to the cell in next row in first column. It is getting focused when i press enter but, how can i automatically scroll the horizontal scroll bar to get that that cell visible.

    Change selection - it should automaticaly scroll
    yourTable.setRowSelectionInterval(rowSelected, rowselected)

  • Drag/Drop inside SWFLoader not working

    I've got a Flex application that loads a secondary Flex app via SWFLoader. The secondary app uses drag/drop operations to rearrange components, delete them etc.  The secondary app works perfectly while it is running by itself (eg. not 'embedded' via SWFLoader into the main app).
    Once I load it into the main application using a SWFLoader drag/drop operations no longer work correctly. All other events seems to work fine. It is only drag/drop that don't always work right.
    Is there something I am missing that would cause this issue? I'm thinking there may be a property I need to set on the SWFLoader. Hopefully someone can help.

    Thanks Alex.
    I did as you say, and DragManager is in the report file in several places. Also, Drag/Drop does work inside of SWFLoader for the TileList in the loaded app, and even somtimes as it should as far as the drag/drop operation I am talking about, but not always.
    It seems to work sometimes and not others. When it does work it is not nearly as smooth as when I run the app as a "stand alone" and I never see the drag proxy while dragging inside of SWFLoader.
    Is there anything else that could be causing these issues? 

  • Cannot Drag & Drop Audio Files from iTunes into Project Timeline

    Hello,
    I have an iMovie (10.0.6) project open. I click the iTunes icon to fetch an audio track and it won't allow me to drag/drop it into the timeline. Yet it allows me to drag/drop other tracks from the same playlist (all from the same CD). All tracks are the same file type and about the same size/length, yet one of them (the one i want) cannot be dragged/dropped into the timeline. This happened with another iMovie project recently (different tracks from a different CD, but same idea: can't drag/drop one track, but i'm able to drag/drop others).
    Your help is appreciated!

    I've having the same issue. Very frustrating. FFS Apple!

  • Don´t allow drag&drop

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

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

  • Unable to double-click or drag/drop files to open.

    I'm running Photoshop CC 64 on a Windows 7 64 machine and am only able to open files in Photoshop by going to File->Open. Double-clicking from Explorer doesn't work and i can not drag/drop files into the open application window or taskbar icon. Right clicking on files and selecting "Open with" also doesn't work.
    I checked file associations and made sure to choose CC 64. If I right click on the shortcut and choose "Run As Administrator" which I have to do in order to get files to open between Lightroom and Photoshop (both need to be Run As Administrator), I'm still unable to open from Windows Explorer. However, if I check the box to "Run this program as administrator" in the shortcut's Compatibility tab, I can double-click to open from Explorer but am prompted with a UAC warning every time. Dragging/dropping into the open app still doesn't work.
    Opening between Bridge and PS works as expected so long as both programs are "Run As Administrator"
    Been searching the forums here and seen suggestions of similar but not the same issue, at least not that I've found.
    Anyone else experiencing? Suggested remedies?

    This is an OS permission problem.  Make sure you have ownership of the HD.  Do a web search on how to check.  External HD can be a problem for permission.

  • Lenovo ThinkPad Yoga S240 - Chrome drag & drop

    Hi there
    I can not drag & drop into google chrome app, even if I use a split screeen. I use this for example for google drive.
    I did google a lot about this topic but I never really found an answer except maybe that I have to install another version, a desktop version of google chrome. Ist that true? 
    Anyone having experience with this? 
    Solved!
    Go to Solution.

    Hi MAZ,
    Welcome to Lenovo Community Forums!
    As per the query we understood that you are facing issue with Google Chrome application on your ThinkPad Yoga S240.
    Uninstall Google Chrome browser from your system, delete the entire chrome folder and run the register cleaner and reboot the system. After restarting download and install the Google chrome with latest version and check if the issue resolved.
    Hope this helps.
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Cannot Drag & Drop in the dock or double click to open files anymore

    Since installing OS X 10.4.3 then .4 I can only open files through the appropiate
    application using OPEN under FILE in that application. Drag & drop into the dock app only gives a momentary flash and a double click on the file/document does nothing. Any ideas? It worked fine in 10.3

    I have a similar issue, but my case is pretty odd (it is to me, anyway). I am in a largely Windows-based company, but work in a small Mac-based department. We recently relocated into new offices, and the new environment is run on a Windows 2003 server (our old offices were on a Windows 2000 server).
    My issue is that when I try to double-click an icon, drag an icon to the Dock, or open with keyboard shortcuts, the application launches, but no file opens. The only way I can open a file is via File>Open through the application.
    My computer is a PowerMac G5 running OS X 10.4.4 -- oddly, our 10.3.x users do not have this issue. And I never had any problems on the W2K server. So I'm sure there's something with the new 2003 server and 10.4, but I've searched through the threads and didn't see anything exactly like my issue.
    Any thoughts? Are there server settings that may have been missed by our IT department? Or is there something I need to set on my Mac? Any help would be greatly appreciated.

  • Loop audio disappears when dropped into timeline

    When I preview a loop, it sounds great. When I drag & drop into the timeline, the loop no longer has any sound. Any suggestions?

    You dragged it into the empty area of the timeline, right?
    It sounds like you don't have the instrument that this loop uses (the preview is always an audio file, while the loop itself plays on GB's software instruments). What instrument is that supposed to be? Can you create a new software instrument track and use that instrument?

Maybe you are looking for

  • HT4527 I am trying to transfer music to a new computer using homeshare but it is not working.

    I can see the library from the "old" computer and can "select all" as the online help suggests. There is not an "import" button on the bottom right of itunes as the online help suggests and I don't see any options on the drop down menus to do this. 

  • Problem in alv fieldcat function

    data: begin of it_mara occurs 100,          matnr LIKE mara-matnr,          ernam LIKE mara-ernam,          ersda LIKE mara-ersda,          mtart LIKE mara-mtart,        end of it_mara. i am using the above mentioned int tab. the following function i

  • E-Mail ID

    Hi All,    How Can i get the user e-mail address? when user login to SAP system. Pls help me

  • Working with flv anf f4v

    We try to use FME to capture and stream video from different kinds of sources. These streames are to be treated in different ways. Sometimes they will be streamed via FMS live or/and on demand, sometimes they will be made available for download. To s

  • Adobe form language translation

    Hi All, In Adobe form, I found two issues while translating English form to Korean. 1. Bold property is not working in print output. 2. When I am trying to fax, the Korean form fax is not coming. Please kindly advise. Thanks, Anu