dcsimg

What policies/permissions are needed to use drag and drop in an applet?

John Zukowski

According to the Drag and Drop FAQ:


grant {
  permission java.awt.AWTPermission 
    "accessEventQueue";
  permission java.awt.AWTPermission 
    "setDropTarget";
  permission java.awt.AWTPermission 
    "accessClipboard";
  permission java.awt.AWTPermission 
    "acceptDropBetweenAccessControllerContexts";
  permission java.awt.AWTPermission 
    "listenToAllAWTEvents";
};