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

Posted on 2003-04-01
Medium Priority
Last Modified: 2013-12-14
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
Question by:cbasoli
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Accepted Solution

CEHJ earned 1500 total points
ID: 8245753
Sign the applet or alter the security policy.
LVL 86

Expert Comment

ID: 8245786
LVL 35

Expert Comment

ID: 8245933
 If you go for altering the security file you need to give it a: permission java.awt.AWTPermission "accessClipboard"; permission.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 35

Expert Comment

ID: 8245968
> 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).
LVL 35

Expert Comment

ID: 8246526
you will have to sign the applet tho...

System clipboard is restricted for unsigned applets
LVL 92

Expert Comment

ID: 8249756
> 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.

Author Comment

ID: 8262373
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question