Home News People Research Study Search

Institute for Computing Systems Architecture

Computer Architecture Simulation & Visualisation

Copy & Paste Editing

To communicate data among applications with the copy & paste facility, the system (Linux, Window, ...) uses the clipboard. To prevent malicious applets from spying on information which goes to the clipboard, standard security managers for applets do not allow access to the clipboard. Happily, the security manager can be configured using a java policy file on the computer which launchs the Java Virtual Machine(JVM) (appletviewer or Browser).

If you already have a ~/.java.policy file, add the following lines at the end of the file. Otherwise, just create a file in your top level directory which contains these lines:

grant codeBase "http://www.icsa.inf.ed.ac.uk/research/groups/hase/javahase/applets/*" {
permission java.awt.AWTPermission "accessClipboard";
};

This means: give permission to access the Clipboard to applets from a URL starting with http://www.icsa.inf.ed.ac.uk/research/groups/hase/javahase/

You will now be able to copy from local files and paste into JavaHASE editable text windows.

For further details, see Using the clipboard with JavaHase applets

Return to previous page

HASE Project
Institute for Computing Systems Architecture, School of Informatics, University of Edinburgh
Last change 7/07/2003


Home : Research : Groups : Hase : Javahase : Docs 

Please contact our webadmin with any comments or changes.
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh.