applet

opening JFrame from applet

百般思念 提交于 2019-12-16 18:04:20
问题 So I programmed am applet that makes a ball roll in circles for ever, and I wanted to make the user decide what speed the circle should roll in, but something failed when I added the JFrame: applet(the stop,destroy and update do not appear because they aren't important, and in start there is nothing): public class Main extends Applet implements Runnable{ private Image I; private Graphics GfU; int ballX, ballY=249; static int radius=20; double Memory; int changeY ,changeX=1; Speed S = new

Can I violate the same-origin policy with a Java applet

青春壹個敷衍的年華 提交于 2019-12-14 04:18:38
问题 I need to request things and get information from other domains. I know javascript can not do this due to the same origin policy. My other option is to make proxy requests through my server. I do not want the requests coming from my server's IP nor do I want to create additional load for my server and would prefer the client do it. Is it possible to use a Java applet to do this? Manually configuring security settings is not an issue. 回答1: Java applets do implement the same origin policy, much

Scala applets - SimpleApplet demo

a 夏天 提交于 2019-12-14 03:44:22
问题 The ScalaDoc for the applet class is pretty thin on details on how you actually override the ui piece and add components. It says "Clients should implement the ui field. See the SimpleApplet demo for an example." Where is this SimpleApplet demo? Barring that, does anyone have some simple source code of using the Scala Applet class, rather than the JApplet class directly? Thanks 回答1: The more recent ScalaDoc may be slightly more helpful (in particular, the new version of ScalaDoc allows you to

Java Applet: no antialiased font in browser (but in AppletViewer)

空扰寡人 提交于 2019-12-14 03:42:51
问题 In the AppletViewer, my Applet looks like this: In the browser, my Applet looks like this: As you can see, the font is not antialiased. Also the background color is different. And all the text is cutted on the right side. What could that be? You can also try it yourself here. From here I tried to use this code: System.setProperty("awt.useSystemAAFontSettings","on"); System.setProperty("swing.aatext", "true"); But that results only in this exception: java.security.AccessControlException:

Applet runs in eclipse but not in browser - java security

拟墨画扇 提交于 2019-12-14 03:34:42
问题 Below is applet code, it uses jna.jar (https://github.com/twall/jna) to access a DLL file in system32. import javax.swing.*; import javax.print.*; import java.security.*; import java.util.ArrayList; import com.sun.jna.Library; import com.sun.jna.Native; import java.awt.*; import java.awt.event.*; import java.io.PrintWriter; import java.io.StringWriter; import com.sun.jna.Pointer; import com.sun.jna.platform.win32.WinDef.HWND; import com.sun.jna.platform.win32.WinUser; import com.sun.jna

Applet stopped working with a JNLP MissingFieldException <jnlp>

☆樱花仙子☆ 提交于 2019-12-14 03:12:17
问题 I have an applet which was running 1/2 year ago. Now i needed to 'reactivate' it however for an unknown reason it is not working anymore. Here are the specs: JNLP based NG Applet Tomcat 7 JRE 1.7.0_25 Firefox 22 and Chrome 28 This is the error I get: MissingFieldException[ The following required field is missing from the launch file: <jnlp>] at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl

Replace Applet in downloading and executing a file

坚强是说给别人听的谎言 提交于 2019-12-14 02:43:33
问题 I have an application that has an applet that does two simple things: Download an executable jar file from our server (if the user doesn't already have it) to an specific folder in the user's PC Execute the jar file with the corresponding parameters This jar file monitors an Office file for changes and send it back to our server. The problem is the war Chrome is creating with Java with this NPAPI thing. So I have until September to think of an alternate technology or stop the Chrome support.

As of Java 7 update 45, one can no longer lookup manifest information without triggering a warning?

旧巷老猫 提交于 2019-12-14 02:32:32
问题 Unfortunately, the workaround given by Oracle and others here (Java applet manifest - Allow all Caller-Allowable-Codebase) for getting around the 7 update 45 problem does NOT work if your app needs to access its loaded signed jar manifests. In my case, our app does this so as to log the relevant manifest info. With my web start app, everything worked fine and dandy with the "Trusted-Library" attribute that needed to be added for 7u21. With 7u45, removing the "Trusted-Library" attribute and

Migrate Java Applet to what/where?

懵懂的女人 提交于 2019-12-14 02:19:56
问题 I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems. It's a tool to create custom labels, so we need drag-n-drop and other related UI components. To which technogly will you migrate given the code base is in Java. Applet -- No Java FX -- Adoption rate is too low GWT -- Refactoring is not easy Any ideas/suggestions. 回答1: Why do you need to migrate this ? Because of drag-n-drop ? Perhaps you should look at running it as a

Security warning prompt for Java Applet

柔情痞子 提交于 2019-12-14 02:13:04
问题 Starting from JRE 1.7 update 55, in some circumstances (not always, expecially if i call application by host-name instead of by IP), security warning is always shown, even if i check "Don't show this message again". Manifest is fixed according to the latest directives UPDATE Investigating JRE security log, i've noticed that, where applet works correctly, i've these lines: security: Caricamento certificati di distribuzione da C:\Users\Redturtle\AppData\LocalLow\Sun\Java\Deployment\security