Re: Swing drag & drop examples in Java 6.0?



"Nigel Wade" <nmw@xxxxxxxxxxxx> wrote in message news:f7qf9o$n7f$1@xxxxxxxxxxxxxxxxxxxx

http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html

I did at one point implement D'n'D for some components using this Tutorial as
the basis for the work. I got the basic functionality to operate, but then
decided on a better way of doing things so never completed it.

It should be enough to get you started. It should also give you the terminology
to help you Google for more specific information.

Thanks Nigel, that looks good. But I am unable to run the extended D&D demo as I encounter this error in JNLP:

java.io.FileNotFoundException: http://java.sun.com/docs/books/tutorialJWS/uiswing/dnd/ex6/ExtendedDndDemo.jnlp
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://java.sun.com/docs/books/tutorialJWS/uiswing/dnd/ex6/ExtendedDndDemo.jnlp
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
... 16 more

Could you possibly verify that this is something at the Sun end of things and not my configuration by trying to run it yourself? I am using Java 6 Update 2. The first demo runs fine.

--
And loving it,

-Q
_________________________________________________
Qu0llSixFour@xxxxxxxxx
(Replace the "SixFour" with numbers to email me)

.