Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2012
    Posts
    14
    Rep Power
    0

    Default Is there any way to access copy/paste/cut in applets? I am still getting this error.

    Hi,

    After Signing the applet also i am not able to use copy/paste/cut options in the application by using system clipboard and also i have added permission to java.policy file. like AWTPermission..etc

    and still am trying to paste in textfield in the console i am getting following Exception. I added all permissions.

    java.security.AccessControlException: access denied (java.awt.AWTPermission accessClipboard)
    at java.security.AccessControlContext.checkPermission (Unknown Source)
    at java.security.AccessController.checkPermission(Unk nown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkSystemClipboardAcce ss(Unknown Source)
    at sun.awt.windows.WToolkit.getSystemClipboard(Unknow n Source)
    at thinkmap.examples.KeyCommandController.paste(KeyCo mmandController.java:104)
    at thinkmap.examples.KeyCommandController.actionPerfo rmed(KeyCommandController.java:131)
    at thinkmap.gel.KeyCommand.fire(KeyCommand.java:95)
    at thinkmap.gel.GRootPane.processKeyboardCommand(GRoo tPane.java:344)
    at thinkmap.gel.GComponent.processKeyEvent(GComponent .java:927)
    at thinkmap.gel.GTextField.processKeyEvent(GTextField .java:338)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unkn own Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEv ent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKe yEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAsse rtions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent (Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)


    Is there any way to access systemcilpboard. and need to use copy/paste/cut options

    Thanks in advance

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Is there any way to access copy/paste/cut in applets? I am still getting this err

    Don't double post. The thread you started in the AWT/Swing section with the identically same question has been removed.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Is there any way to access copy/paste/cut in applets? I am still getting this err

    I see you have yet another thread for this.
    For my Applet Application how can i use system clipboard options. like copy paste,cut

    I'm closing this. Please continue the discussion in the earlier thread.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. cut/copy/paste in JTextField
    By gauravmanral in forum AWT / Swing
    Replies: 14
    Last Post: 09-25-2011, 08:07 AM
  2. Access Denied Error using applets
    By vin_eets in forum Java Applets
    Replies: 0
    Last Post: 04-01-2011, 03:19 PM
  3. Copy, Cut and Paste Problems!
    By bones in forum New To Java
    Replies: 4
    Last Post: 07-17-2009, 11:18 AM
  4. Cut, copy and Paste in JTextPane
    By Gudradain in forum AWT / Swing
    Replies: 1
    Last Post: 01-03-2009, 07:43 AM
  5. Problems with copy paste
    By fredand44 in forum Eclipse
    Replies: 0
    Last Post: 12-17-2008, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •