applet

Using FreeTTS in a web application

依然范特西╮ 提交于 2020-01-16 00:45:13
问题 I'm building a web application using HTML and JSP. One of the functionality which provided is converting some texts to speech. In netbeans, I created a Java project, this project contains a Java applet offers the speech task, this applet uses FreeTTS (external JAR file), and it works fine. So after building this project, I added its JAR to the web project, for embedding the applet within the web. Now, the problem the applet doesn't work from the website, but it works standalone. Please I need

How to force Java applet to load using TLS1.0 / TLS1.1

情到浓时终转凉″ 提交于 2020-01-15 12:46:07
问题 I have an web application from which multiple users loads a Java applet. Now there is a problem that the loadbalancer does not support TLS1.2 which is the default for Java8 and it seems that Java8 does not automatically try lower version. How can I force the applet to be loaded using TLS 1.0/1.1? I have tried to put this into the <applet>: <PARAM name="java_arguments" value="-Dhttps.protocols=TLSv1"> Any help is appreciated, not very keen on solution where hundreds of users need to configure

java.security.AccessControlException in Applet

女生的网名这么多〃 提交于 2020-01-15 10:17:13
问题 Inside my Applet, it needs to download the csv file from other site to run. When i run applet with appletviewer, it gave me this exception : java.security.AccessControlException: access denied (java.net.SocketPermision www.xxxsitexxx.com:80 connect, resolve .... My applet's signed : jarsigner -verify myfile.jar >> the result : jar verified. I tried to add : grant { permission java.security.AllPermission; }; into Tomcat's folder : ..conf/catalina.policy But it didn't work. Google suggests me

What cross-browser technology do you use in your web applications to manipulate on client machines?

元气小坏坏 提交于 2020-01-15 06:10:08
问题 (I have a problem with Google Chrome improvements that will drop support for my current solutions.) I work on project where I move desktop system to an Intranet web application. The crucial requirements are: to move desktop system to a web application to reproduce every single functionality from the desktop system in the webapp While 95% of work requires creating casual web application, there is one thing which is non-standard to handle: my application must perform some actions on the client

Error when calling javascript method from applet

假如想象 提交于 2020-01-14 14:31:21
问题 I am trying to call javascript method from an Applet using netscapte.java.JSObject . in the applet: JSObject window = JSObject.getWindow(this.Class); Object[] args = .... //arguments window.call("javascriptMethodName", args); But I get the exception at window.call: JavaScript error while calling "callFromJava" netscape.javascript.JSException: JavaScript error while calling "callFromJava" at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source) at sun.plugin2.main

How to change JButton Icon when selected?

点点圈 提交于 2020-01-14 13:47:07
问题 I Want to change the JButton icon when user press/release the button. A icon image when the JButton were selected A icon image when the JButton were unselected and the JButton were release: How can I do this? 回答1: JButton b = new JButton(Icon x); // Create button with normal icon b.setIcon(Icon x); b.setDisabledIcon(Icon x); b.setPressedIcon(Icon x); b.setSelectedIcon(Icon x); b.setDisabledSelectedIcon(Icon x); ref: http://www.leepoint.net/notes-java/GUI/components/20buttons/23buttonicons

Java applet cannot locate resources

99封情书 提交于 2020-01-13 19:24:31
问题 I am sorry if this is a repeat but I already read dozens of posts regarding the issue and I still cant solve it. I am working on a project in java with Intellij IDE (it's actually this game http://www.kilobolt.com/unit-2-creating-a-game-i.html and it appeared on this forum allot). My issue is that the java applet cannot locate any resources (images and texts). getImage() method cant load images with "../data/image.png", nor "/data/image.png", nor the regular "data/image.png". same goes for

Java applet repaint a moving circle

谁说胖子不能爱 提交于 2020-01-13 07:07:33
问题 I've just moved over from Pygame so Java 2D in an applet is a little new to me, especially when it comes to repainting the screen. In pygame you can simply do display.fill([1,1,1]) but how do I do this in an applet in Java? I understand the use of repaint() but that doesn't clear the screen - any moving object is not 'removed' from the screen so you just get a long line of painted circles. Here's my code that I've been testing with: package circles; import java.applet.Applet; import java.awt

Can an Applet that uses JavaScript to communicate with web server be migrated to JWS?

时间秒杀一切 提交于 2020-01-13 04:41:08
问题 Just sharing some information hoping that it would be useful to the community. Usability of Applets have gone down since various browsers stopped supporting plugins. Google has decided to discontinue support for NPAPI plugin, EDGE does not support plugins, Firefox is also discouraging use of plugins, and Mozilla may follow the suite. One of the applications we developed required use of Applets for the following reasons Ability to access ports and peripheral devices attached to computing

Alternative of xuggler for video encoding which doesnot require installaion? [closed]

三世轮回 提交于 2020-01-13 04:41:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am creating a screencast Java Web Start application. Encoding Video using xuggler requires: installing xuggler on the client system - Which is tedious. (OR) Using xuggle-xuggler.jar version 5.2 or above whose size is around 35 MB plus. - this increases the time required for the application to load. Is there