Copy/Paste not working in a signed Applet

前端 未结 4 1314
予麋鹿
予麋鹿 2020-12-03 15:43

I\'ve a signed applet (which verifies correctly with jarsigner) that for some reason will not allow copy and paste from the system clipboard into a

4条回答
  •  被撕碎了的回忆
    2020-12-03 16:24

    Besides Dennis' overview, see Copy in sand-boxed app. in 1.6.0_24+ at the OTN.

    While Ctrl-c copy no longer works by default, it is possible to add the functionality back in for any applet run in a 'Next Generation' Java Plug-In. Since Java Web Start existed, JWS provided sand-boxed copy via. the JNLP API's javax.jnlp.ClipboardService, & since Sun 1.6.0_10, & the next gen. plug-in, embedded applets can be deployed using JWS & can access the JNLP API.

    See also

    • http://pscode.org/prop/js.html. Direct link to the test applet used in that thread. It offers copy ability in a sand-boxed applet. If it works on the problem machine (browser, set-up ..whatever) you should be able to rework it to offer (unprompted) paste in a signed applet.
    • Frame based Demo. of the ClipboardService, with source and build file.

提交回复
热议问题