[英]Any workaround to getting Copy/Paste working in JDK 7 AWT Applet on Mac?
Since Apple forced the update to JDK 7 on Mac, old AWT applets no longer support copy/paste. 由于Apple在Mac上强制更新到JDK 7,因此旧的AWT小程序不再支持复制/粘贴。 For example, if you visit:
例如,如果您访问:
Simple AWT Textfield Example 简单的AWT文本字段示例
you cannot copy and paste into the applet text field on that page. 您不能将其复制并粘贴到该页面上的applet文本字段中。 I've confirmed that you can still copy/paste in AWT on Windows with JDK 7.
我已经确认您仍然可以使用JDK 7在Windows的AWT中复制/粘贴。
Anybody know a workaround? 有人知道解决方法吗?
Oracle released Java 6 Update 24 in February 2011 to remedy 21 vulnerabilities: Announcement Oracle在2011年2月发布了Java 6 Update 24,以纠正21个漏洞:公告
As part of this security release, the ability to copy & paste from a computer's clipboard into a Java applet has been disabled. 作为此安全版本的一部分,已禁用了从计算机的剪贴板复制粘贴到Java小程序的功能。
To fix this issue there are 2 solutions: 要解决此问题,有2个解决方案:
Here is a great and very detailed walk-through to do it the official Java way using their policy tool: 这是使用其策略工具以官方Java方式完成此操作的非常详尽的演练:
http://www.shodor.org/interactivate/resources/InstructionsCopyPaste/ http://www.shodor.org/interactivate/resources/InstructionsCopyPaste/
Here is a quick summary of the instructions: 以下是说明的快速摘要:
在他们修复该错误之前,我发现对小程序进行签名可以使复制/粘贴正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.