Re: JTextPane Paste



tascienu@xxxxxxxxxxxx wrote:
People argue that you cannot read user's cb. But i don't need to read
user's clip board. the user will initiate the action.

That's wrong. It can, but it must not be user-initiated. An applet can contain malicious code which just tries to read the clipboard:


	Toolkit.getSystemClipboard().getContents();

This has to be prevented, so access to the system clipboard is controlled by a security manager.

/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
.