Link to home
Start Free TrialLog in
Avatar of cbasoli
cbasoli

asked on

Looking for a way to drag and drop from MS Excel into a Java Applet

When we originally wrote our product we used version 1.3.0_02 of the Java Runtime Environment.  At that time it supported drag and drop from the Windows Clipboard.  It has oviously taken us a while to get around to fixing this problem, but now it is essential.  Sun's newer versions of the JRE no longer support the drag and drop from the Windows Clipboard into an Applet.  Can you describe a work around?

Thank you, cbasoli@edeploy.com
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
 If you go for altering the security file you need to give it a: permission java.awt.AWTPermission "accessClipboard"; permission.
> Sun's newer versions of the JRE no longer support the drag and drop from the Windows Clipboard into an Applet.  Can you describe a work around?

  Where did you read that? March's tech tips from JDC show how you can do it from JRE1.4 (http://developer.java.sun.com/developer/JDCTechTips/2003/tt0318.html#1 - if you are interested).
you will have to sign the applet tho...

System clipboard is restricted for unsigned applets
> supported drag and drop from the Windows Clipboard.

How do you dnd something from/to the clipboard anyway?
Doesn't seem to make sense, unless you have some window representing the clipboard that you can drag and drop things in and out of.
Avatar of cbasoli
cbasoli

ASKER

Everybody I've asked has told me the same thing, but since you were the first to answer, I'll give you the points.

In order to access the Windows Clipboard you need to sign your applet.  It's been two days and I can't tell what a pain it is getting a signed applet to work properly on iPlanet!

Thanks, 'Soli