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


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

Re: Drag and drop to nati

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: Drag and drop to nati
Message-ID <71b51033bf430@uwe> (permalink)
Newsgroups comp.lang.java.gui
References <No9_h.55$LR5.13@newssvr17.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:
..
>I tested the DragPictureDemo tutorial 
>(http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html#cut) 

Huh?  Which JNLP are you referring to?  This one?
<http://java.sun.com/docs/books/tutorialJWS/uiswing/dnd/ex6/DragPictureDemo2.jnlp
>

>...on both 
>Windows XP (32 bit) using JDK 6 and on Windows Vista (64 bit) using the Sun 
>64 bit JDK (version 6).

Win XP Pro (..32 bit) JDK 6.

>The demo does not drop the images to an external application e.g. windows 
>paint. 

No.  It (the one I linked to) is sandboxed.  Pictures 
can be drag/dropped to blank squares withint the 
frame, but nowhere else.

Try this (also sand boxed) use of copy/paste between 
a web start app. and *external* native apps.
<http://www.physci.org/jws/#cbs>
I have been vaguely wonderring if it might be adaptable 
to D'n'D.  

Of course get the app. singed (digitally) and accepted
by the user with 'all-permissions' and you might use 
D'n'D how you would in an application launched from
the command line (w/ no security manager).

>I have also been trying to write my own code that will drop an image from a 
>Java Swing application to an external app on Vista 64 (e.g. paint), however 
>it does not seem to work.

Maybe it is just lazy.   ;-)

Otherwise, if you can reduce that code as an 
SSCCE*, and post it here, complete with the 
copy/pasted stacktraces you are seeing, and 
we might be able to advise further.
* <http://www.physci.org/codes/sscce.html>

-- 
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 | Next 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