# jdk1.2 Drag and Drop for JApplet

Olivier RODIER (orodier@odaxys.fr)
Fri, 29 Jan 1999 09:03:58 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Christoph Messmer: "Java Security, Duke example"
- Previous message: Jeff Nisewanger: "Re: acessing the url from within signed applet"

    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">
Hi,
I must develop an applet which is based on JDK 1.2 ( = via=20 plug-in1.2) and include some drag and drop possibilities. A draggable = tree and a=20 droppable list. I can initiate le drag event, I select an element in my = tree,=20 but some problems appear when I want drop the object in the list. In=20 particularly on the line :
((DefaultListModel)=20 getModel()).addElement(userObject);
I just want to add an element in my list but an = error occurs,=20 this error :
java.security.AccessControlException : access denied = (java.AWTPermission accessEventQueue)
If I make just :
((DefaultListModel) = getModel()).isEmpty();
the answer is TRUE !
What's the solution ? Can we make DragnDrop in an = Applet ? Are=20 they some security problems ???
Thanks for your response.
Olivier RODIER, orodier@odaxys.fr
------=_NextPart_000_0016_01BE4B66.4E297600--

- Next message: Christoph Messmer: "Java Security, Duke example"
- Previous message: Jeff Nisewanger: "Re: acessing the url from within signed applet"