Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1608

Re: Drag and drop to nati

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: Drag and drop to nati
Message-ID <71f67fe284dfc@uwe> (permalink)
Newsgroups comp.lang.java.gui
References <bOy0i.2311$zj3.946@newssvr23.news.prodigy.net>
Date 2011-04-27 15:34 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Yug3sh wrote:
>Andrew,
>
>Thanks for the response. 

Your thanks can best be expressed, in your future lack
of top-posting..

>..I don't think it's a sandbox issue. I copied the 
>source code from the demo link I specified and compiled and ran it as a java 
>application and had the same problem.

This project?
<http://java.sun.com/docs/books/tutorial/uiswing/examples/zipfiles/dnd-DragPictureDemo2Project.zip
>

>My application is also run as a java app (not applet or web start) and has 
>the same issue.

That is odd.  Since you confirmed the app. was trusted,
I gave the classes in the archive (mentioned above) a 
quick run.

I could (on the aforementioned machine) paste pictures into
Paint Shop Pro 3.12 (an ancient version of a nice image editor)
and could D'n'D (or paste) pictures with Open Office 2 (Draw/Calc 
or Writer).

It got a little more interesting when I tried D'n'D to WordPad
and confirmed your result of 'blank image' arriving.  It got a 
little more interesting still when I discovered that I could 
see the images I had drag/dropped into OpenOffice, 
when copy/paste from OO into WordPad - as an 
actual image!

So in the same WordPad document, I had a blank image
D'n'D'd direct from DragPictureDemo2, beside a colored 
version that had come via OO.

A little bit of hunting led me here..
<http://www.rockhoppertech.com/java-drag-and-drop-faq.html#nativeimages>
Which leads me to think that whatever flavor these
images are being served up to (MS) Windows 
programs, it is not bitmap.  OO seems to handle 
whatever format the D'n'D offers - so does PSP.

HTH

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200705/1

---
 * 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 | NextPrevious in thread | Find similar | Unroll thread


Thread

Drag and drop to native b "Yug3sh" <yug3sh@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
  Re: Drag and drop to nati "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
    Re: Drag and drop to nati "Yug3sh" <yug3sh@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
      Re: Drag and drop to nati "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

csiph-web