Applet copy/paste not working after upgrading JRE 1.7

孤人 提交于 2020-01-05 12:10:42

问题


I have applet which loads form. The form has text, textarea, dropdown, checkbox controls. After upgrading to JRE 1.7 Im not able to right click inside my text fields to copy/paste any content.

My JAR file is dually signed and security permissions set. I have also tried the workaround by changing settings in .java.policy file :

// "standard" properies that can be read by anyone
permission java.awt.AWTPermission "accessClipboard"; 

Interestingly enough I can do copy/paste by right click inside my TEXTAREA control but not inside any other control.

Any suggestions/advice?


回答1:


Any suggestions/advice?

  • Abandon applets completely1, or
  • Lower the requirements (no 'right click').

They were always a PITA, and that increased by an order of magnitude with the recent security updates.

  1. If the functionality does not need to be embedded in a web page, you might have more luck with a free floating JFrame launched using Java Web Start. OTOH, it might have also become subject to the 'no right click' philosophy.


来源:https://stackoverflow.com/questions/20086892/applet-copy-paste-not-working-after-upgrading-jre-1-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!