Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1890
| From | "dbhomers" <dbhomers@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Drag N Drop with virt |
| Message-ID | <1182707897.252977.80470@w5g2000hsg.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <z7OdndaXeJN8v-DbnZ2dnUVZ_gydnZ2d@comcast.com> |
| Date | 2011-04-27 15:35 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
On 23 Jun., 15:45, "Larry Barowski" <MElarrybar-AT-
eng_DOT_auburnANOTHERDOTeduEND> wrote:
> <dbhom...@becker-print-soft.com> wrote in message
>
> news:1182522221.334604.84360@m36g2000hse.googlegroups.com...
>
> > Hi, iam a little bit confused :/
> > I also had overwritten the getTransferData() and return a List<File>;
> > For Example i have my temporary File in this List: new File("/tmp/
> > empty.txt");
> > Now the File will be droped to an unknown Location "on the Filesystem
> > (not in my App!)".
> > After this Drop the File i got in the List also have the Path /tmp/
> > empty.txt
> > The same in exportDone(), Filepath is the old one, not the new one!
>
> > Should i return something other in getTransferData() ??
>
> You want to preserve the filenames, so create a temporary directory
> and put them there with the actual names. That's what WinZip does.
> My first thought when I needed to do this was "Well, how does
> WinZip do it?". You can use System.getProperty("java.io.tmpdir") to
> figure out where to put your temporary directory. Whatever app you
> drop into will either copy from there or open from there.
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.
---
* 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
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Drag N Drop with virtual "Dirk Becker" <dirk.becker@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "bcr666" <bcr666@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "dbhomers" <dbhomers@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "dbhomers" <dbhomers@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Drag N Drop with virt "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
csiph-web