🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: aus.computers.java
1 messages
1 total messages Started by Paul Mon, 03 Jul 2000 00:00
Trying to copy text to clipboard from an applet...
#660
Author: Paul
Date: Mon, 03 Jul 2000 00:00
42 lines
2286 bytes
Hi all,

I have written a small applet program that copys a line of text from a
textfield to the clipboard.
I have created a .java.policy file and can view the applet using
appletviewer but when I upload it to my webpage I get errors. I realise that
it some kind of security error but have no idea what to do next..

The following is copied from IE's Java Console.
==============================================
D> ------------- Applet Init ----------------
D> ------------- Applet start ---------------
D> Post record to url http://fe2-gc.imrworldwide.com/cgi-bin/demorecord
D> -------------- Output ------------------
Record Sent
D> ------------- End Output ---------------
com.ms.security.SecurityExceptionEx[modemlist.<init>]: Clipboard access
denied.
 at com/ms/security/permissions/UIPermission.check
 at com/ms/security/PolicyEngine.deepCheck
 at com/ms/security/PolicyEngine.checkPermission
 at com/ms/security/StandardSecurityManager.chk
 at com/ms/security/StandardSecurityManager.checkSystemClipboardAccess
 at com/ms/awt/WToolkit.getSystemClipboard
 at modemlist.<init>
 at com/ms/applet/BrowserAppletFrame.newInstance
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.run
 at java/lang/Thread.run
java.lang.InstantiationException: modemlist
 at com/ms/applet/BrowserAppletFrame.newInstance
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.run
 at java/lang/Thread.run

Can somone please help??

Regards,

Paul
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads