applet

Can you sign a Java applet but keep it in the sandbox (NOT give it full access to user's computer)?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 12:14:06
问题 Thanks to Oracle's latest changes, it appears I have to sign an applet even though I don't need or want it to have unrestricted access to the user's computer (which is why its currently unsigned). In particular, I don't want the warning they show for signed applets: This application will run with unrestricted access which may put your computer and personal information at risk. ...which will scare the people using it. Is it possible to sign an applet but mark it in some way to say "but keep

Bridge between the Java applet and the text input controls on the web page

给你一囗甜甜゛ 提交于 2019-12-18 11:56:41
问题 I have been working with a Java applet which is an applet that helps to write using only a mouse. For my case, I am trying to incorporate this into my webiste project as follows: When the user clicks on any input element (textbox/textarea) on the page, this JAVA applet loads on the webpage itself. In the screenshot of the JAVA applet seen below, the user points to an alphabet to and the corresponding text gets written in the text box of the applet. Now what I am trying to do is to get this

BouncyCastle Cryptography provider library used with applet on Java 7u40

蹲街弑〆低调 提交于 2019-12-18 11:12:30
问题 The case: I am maintaining a Java applet which uses the BouncyCastle libraries bcpkix-jdk15on-149.jar , and bcprov-jdk15on-149.jar . Problem is when the applet is run on a JRE version 7_u40 enabled browser. The behavior has changed from version 7_u25 in a way that it always prompts a modal window like "Security prompt for an app using a self-signed certificate" (which cannot be permanently hidden anymore), just to trust bcprov . https://www.java.com/en/download/help/appsecuritydialogs.xml As

web 如何实现精准打印

走远了吗. 提交于 2019-12-18 10:58:03
在 WEB 系统中,打印是必不可少的一个功能,但也是一个比较棘手的问题。如果完全自己开发,由于涉及浏览器的局限性、js 兼容性、稳定性等因素,往往耗时长、工作量大,最终严重影响项目周期。特别地,在 WEB 环境下,套打需求的实现时难度更大,此时需要将浏览器中呈现的 HTML 精确地打印到票据中,实现对分页位置的控制。 常用的 WEB 打印实现方式有哪些呢? 1、 利用浏览器自带的打印控件来实现 web 打印 实现方法:直接调用 IE 的打印功能或者在程序中调用 window.print() 来实现 web 打印 优势:不需要对浏览器作任何扩充 缺点: 1) 不能精确分页。 浏览器一般是根据用户设置的页面大小、web 页面的内容多少来自行决定分页位置,程序员很难控制,因为会有页脚页眉干扰。 2) 不能准确对齐边边距及打印文字。 3)不能解决连续打印 2、 使用 pdf 文件 实现原理:从服务器端下载一个 pdf 文件流,在 IE 中用 adobe 插件打开,然后用 adobe 的打印菜单进行打印 优点:可以实现精确套打 缺点:需要下载 adobe 插件 3、 采用 Applet 方式 优点:可以实现分页和精准打印 缺点:1)安装 Applet 成本巨大,一般需要下载十几 M 的文件。 2)打印报表时,需要重新向服务器检索数据,效率低。 上面的三种实现方法虽然可以解决部分 web

How can an applet Read/Write files on the local file-system?

ε祈祈猫儿з 提交于 2019-12-18 09:56:27
问题 In Java JApplet, file read and write operations did not work in webrowser. When I click "Ok" button, it should be write some file in our local path. But it shows below error. How to resolve this error? java.security.AccessControlException: access denied ( "java.io.FilePermission" "D:/.../.html" "write") 回答1: By default whenever a applet tries to access local resources, its denied as a part of security layer. You have following options if you need to access using applet: Sign your applet using

Playing an audio file on JButton press?

梦想的初衷 提交于 2019-12-18 09:28:16
问题 I've looked on Google for a while, searching how to play audio files, and most of the sources I found were with using java.applet.* , but I am trying to look for a way I can put it inside my actionPerformed() method. public void actionPerformed(ActionEvent event) { if(event.getActionCommand().equals("Play")){ //Short Audio File Playing Here } } 回答1: See the JavaSound info. page for the "Playing a Clip" section. 回答2: You may learn and use javax.sound API. Have a look at tutorial - Playing Back

Pass image from java applet to html

走远了吗. 提交于 2019-12-18 09:27:04
问题 I am using a signed java applet to load an image from the filesystem of the user. Then I want to display this image in the website where the applet is running. I know how to communicate between applet and JavaScript, but I only used strings and numbers as parameter. How do I handle image objects and how do I display them on the website? If required I can convert the format in the applet to match the JavaScript. Edit: I passed the Image object from java to javascript with a call from JSObject.

How can I pass arbitrary system properties whose values may change to a signed Java RIA (applet, webstart) via JNLP?

烈酒焚心 提交于 2019-12-18 06:58:07
问题 Due to tighter security restrictions in 7u51 , due in January, I'm trying to sign my JNLP file. Our application requires certain custom system properties to be set, and the values of some of those properties are different depending on where the applet is being deployed. I would like to avoid having to re-sign the JAR containing the JNLP template for each deployment. The naive approach of putting <property name="my-prop" value="*"/> in the JNLP template does not work. Even with <property name=

Splitting a file before upload?

谁都会走 提交于 2019-12-18 05:02:13
问题 On a webpage, is it possible to split large files into chunks before the file is uploaded to the server? For example, split a 10MB file into 1MB chunks, and upload one chunk at a time while showing a progress bar? It sounds like JavaScript doesn't have any file manipulation abilities, but what about Flash and Java applets? This would need to work in IE6+, Firefox and Chrome. Update : forgot to mention that (a) we are using Grails and (b) this needs to run over https. 回答1: You can try Plupload

USB Scanner with Flex / Java applet?

痴心易碎 提交于 2019-12-18 03:43:56
问题 Is there a way to get an image from a usb scanner (on Windows primarily, cross-platform solution would be best) and post the image together to a form in browser with Flex or Java applet? thx! 回答1: The standardized TWAIN scanning interface is definitely the place for you to look at, rather than low-level USB, except if you are targeting only one specific device and know how to talk to it. Java based There is another Stack Overflow question pointing out a link to a open Applet talking to a