Article View: borland.public.jbuilder.java.api
Article #2341Drag and drop from Microsoft Outlook
From: alessandro pironi
Date: Wed, 31 Jan 2001 11:18
Date: Wed, 31 Jan 2001 11:18
27 lines
2451 bytes
2451 bytes
I'm trying to implement a drag and drop operation from Outlook to my java
application.
Things seem not to work fine, when i try to retrieve InputStream from
flavour i get a
java.io.IOException: class java.io.IOException:no native data was
transferred caught while getting Data
this is my code:
public synchronized void drop(DropTargetDropEvent dropTargetDropEvent) {
Transferable tr = dropTargetDropEvent.getTransferable();
dropTargetDropEvent.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);
DataFlavor df = tr.getTransferDataFlavors()[0]; /*the only one
returned*/
tr.getTransferData(df);
...
}
in the last line i get the exception.
Please reply also to my private address.
Thank you all,
Alessandro.
Technical Details
Message-ID:
<2wSd6.87343$lV5.1779944@news2.giganews.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!199.60.229.5!newsfeed.direct.ca!look.ca!nntp2.aus1.giganews.com!nntp3.aus1.giganews.com!news2.giganews.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,97db704a0de72792,start X-Google-Attributes: gid111d45,public X-Google-Thread: 1089d0,97db704a0de72792,start X-Google-Attributes: gid1089d0,public X-Google-Thread: 116143,97db704a0de72792,start X-Google-Attributes: gid116143,public X-Google-Thread: 10fd6d,97db704a0de72792,start X-Google-Attributes: gid10fd6d,public X-Google-Thread: f74b3,97db704a0de72792,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-01-31 03:19:30 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!199.60.229.5!newsfeed.direct.ca!look.ca!nntp2.aus1.giganews.com!nntp3.aus1.giganews.com!news2.giganews.com.POSTED!not-for-mail From: "alessandro pironi" <alessandro.pironi@tin.it> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,borland.public.jbuilder.java.swing,comp.lang.java.developer,comp.lang.java.gui Subject: Drag and drop from Microsoft Outlook Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Galactica.it News Service X-NNTP-Posting-Host: 62.122.13.117 Message-ID: <2wSd6.87343$lV5.1779944@news2.giganews.com> NNTP-Posting-Date: Wed, 31 Jan 2001 05:18:22 CST X-Trace: sv2-fyv4dv0rz6A4fUA7BZyoUu59XLeL3EcEPJPbrDWQxFYrYKrjaMnAqOXIpqC9/f6+V8z1r23TwHFxT73!eOPmmzILR9ENPzZPgRIoErDW+ujU X-Complaints-To: abuse@GigaNews.Com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Wed, 31 Jan 2001 11:18:22 GMT