From: "Olivier RODIER" <orodier@odaxys.fr>
To: <java-security@java.sun.com>
Subject: jdk1.2 Drag and Drop for JApplet
Date: Fri, 29 Jan 1999 09:03:58 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01BE4B66.4E297600
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
I must develop an applet which is based on JDK 1.2 ( via plug-in1.2) and =
include some drag and drop possibilities. A draggable tree and a =
droppable list. I can initiate le drag event, I select an element in my =
tree, but some problems appear when I want drop the object in the list. =
In particularly on the line :
=20
((DefaultListModel) getModel()).addElement(userObject);
=20
I just want to add an element in my list but an error occurs, this error =
:
=20
java.security.AccessControlException : access denied (java.AWTPermission =
accessEventQueue)
=20
If I make just :=20
=20
((DefaultListModel) getModel()).isEmpty();
=20
the answer is TRUE !
=20
What's the solution ? Can we make DragnDrop in an Applet ? Are they some =
security problems ???
=20
Thanks for your response.
=20
=20
Olivier RODIER, orodier@odaxys.fr
------=_NextPart_000_0016_01BE4B66.4E297600
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">