Skip to main content

Applet and Drag and Drop

3 replies [Last post]
darkling
Offline
Joined: 2006-09-21
Points: 0

I have an applet that has been deployed and working fine for the last 5 years as the user interface for an embedded system. I am receiving reports that part of our interface that uses Drag and Drop has stopped working an is generating security exceptions. Specifically:

java.security.AccessControlException: access denied (java.awt.AWTPermission accessClipboard)

I'm looking for a way to work around this since I care nothing about the clipboard. It's a simple case of the user dragging from one part of the applet and dropping on another part of the same applet. None of the data exchanged should involve the clipboard. It is instance and time specific and is absolutely useless outside the applet.

Is there anyway to tell the DnD framework to leave the clipboard out of this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
celia19o5
Offline
Joined: 2010-07-28
Points: 0

Well, I have been attracted with this forum more cuz there are people to answer questions here. next time when I have any problem, could you please help me?
Thanks in advance :)

--------------------
[url=http://softwareoutsourcing.biz] Hire PHP programmer [/url]

walterln
Offline
Joined: 2007-04-17
Points: 0

I believe it's a bug in 6u19/20 but fixed in 6u21 - check the releases notes.

uta
Offline
Joined: 2007-01-10
Points: 0

You are right. It was a bug in 6u18. This bug had to be fixed in 6u21.
Since 6u18 you need to gain [accessClipboard] permission for data requesting before drop.
The bug was in involving permission checking on drop.