Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Larry Barowski" Subject: Re: Drag N Drop with virt Message-ID: X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <1182707897.252977.80470@w5g2000hsg.googlegroups.com> References: <1182707897.252977.80470@w5g2000hsg.googlegroups.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 31 Date: Wed, 27 Apr 2011 15:35:57 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918557 96.60.20.240 (Wed, 27 Apr 2011 10:35:57 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:35:57 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1893 To: comp.lang.java.gui wrote in message news:1182707897.252977.80470@w5g2000hsg.googlegroups.com... > Yes, thats right! But that is not my intention to do! > Right now, i do it exactly that way and as i said in my first message: > "... I only can extract the files when the User starts dragging. If i > had to extract an 10 MB file the user must wait a minute until he can > release the Button ..." > > What i need is a solution to extract between "User Released > Mousebutton" and "Filesystem will copy files" OR > find out the Drop-Location. > > After playing a little bit with SunDragSourceContextPeer i think its > not possible to do that with Core-Java. > I think i will try if i can write a C-Library which can spy File-Drops > to System and than find out the location via active Window etc. Ah, I didn't realize getTransferData() was called as soon as a valid drop target is identified (but before the drop). I suppose the targets need that if they display something about the nature of the items to be dropped on mouse-over. I don't see any way to tell the difference between a mouse-over and actual drop. The methods in the call stack are identical for both, and the line numbers are mostly unknown. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24