any pointers would be greatly appteciated
thanks
Fridjof.
"John J" <quattr...@yahoo.com> wrote in message
news:B7XB7.342758$j65.89...@news4.rdc1.on.home.com...
"Fridjof Jansen" <fri...@fridjof.nl> wrote in message
news:#OFS5RXX...@net037s.hetnet.nl...
thanks
"Fridjof Jansen" <fri...@fridjof.nl> wrote in message
news:#OFS5RXX...@net037s.hetnet.nl...
Fridjof
"John J" <quattr...@yahoo.com> wrote in message
news:qwXB7.342932$j65.89...@news4.rdc1.on.home.com...
public void doPaste1() {
Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable content = cb.getContents(this);
try {
String s = (String) content.getTransferData(DataFlavor.stringFlavor);
myPaste(s); // my function that inserts text into a JTextPane at
last user position
} catch (Throwable e) { System.err.println(e); }
}
=========
the system tels me:
java.security.AccessControlException: access denied (java.awt.AWTPermission
accessClipboard)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkSystemClipboardAccess(Unknown Source)
at sun.awt.windows.WToolkit.getSystemClipboard(Unknown Source)
at myjapplet.doPaste(myjapplet.java:442)
==========
any help on how to fix this would be greatly greatly appreciated.
thanks
"Fridjof Jansen" <fri...@fridjof.nl> wrote in message
news:uh0KO9Z...@net005s.hetnet.nl...
Sorry for not thinking of this before
Fridjof
"John J" <quattr...@yahoo.com> wrote in message
news:oP0C7.345953$j65.90...@news4.rdc1.on.home.com...
thanks
"Fridjof Jansen" <fri...@fridjof.nl> wrote in message
news:#bKS2naX...@net005s.hetnet.nl...
You cannot access the system clipboard from an applet. That is what the
message is telling you. Write an application (easy) or sign your applet (not
easy).
--
Paul Lutus
www.arachnoid.com
thanks
"Paul Lutus" <nos...@nosite.zzz> wrote in message
news:%21C7.170612$%B.121...@bin1.nnrp.aus1.giganews.com...
It is a way to get the visitor to be offered a decision about whether they
trust you enough to allow your applet to function as an application on their
system. It is not easy to set up.
--
Paul Lutus
www.arachnoid.com
Not if it is living in an applet.
--
Paul Lutus
www.arachnoid.com
Won't work. I don't want your unsecured applet reading what is in my system
clipboard and sending it to you, so java won't let your applet do that.
__________________________________________________
Spot the difference!
Jer 48:10 A curse on him who is lax in doing the Lord's work! A curse on him
who keeps his sword from bloodshed!
Mk 16:16 He that believeth and is baptized shall be saved; but he that
believeth not shall be damned.
Quran 2 And kill them wherever you find them, ... if they do fight you, then
slay them; such is the recompense of the unbelievers.
http://www.users.bigpond.com/pmurray .