applet

Connection to a URL from within an applet using Apache's HttpClient vs using the JDK's URLConnection

筅森魡賤 提交于 2019-12-21 17:47:44
问题 In the following code, I have verified that connecting to a URL from within an applet preserves the browser's session if JDK's URLConnection class is used. However, this is not the case if Apache's HttpClient library is used. Does anyone know why? Alternatively, is there a way for me to set the connection instance to be used by an HttpClient instance? import java.applet.Applet; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net

How to make full screen java applets?

放肆的年华 提交于 2019-12-21 07:42:10
问题 I am designing a psychology experiment with java applets. I have to make my java applets full screen. What is the best way of doing this and how can I do this. Since I haven't been using java applets for 3 years(The last time I've used it was for a course homework :) ) I have forgotten most of the concepts. I googled and found that link: Dani web But in the method described in above link you have to put a JFrame inside the applet which I have no idea how to do it. Whatever I need a quick and

How does one sign up for the JDK CAP (Compatibility and Performance Program) - Early release Notification [closed]

懵懂的女人 提交于 2019-12-21 05:55:19
问题 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 6 years ago . We were/are stung by the new security baseline requirement with Java's release of 7u45, which caused our applet not work until the end user adjusted the security settings the java control panel (see discussion in below question) Java applet manifest - Allow all Caller-Allowable-Codebase If possible we'd like to

JOptionPane YES NO OPTION [duplicate]

笑着哭i 提交于 2019-12-21 05:38:11
问题 This question already has answers here : JOptionPane Yes or No window (8 answers) Closed 3 years ago . I got an JOptionPane and yes and no buttons. But, whichever button you click it still exists. HELP! Heres the code: int dialogButton = JOptionPane.YES_NO_OPTION; JOptionPane.showConfirmDialog (null, "Are you sure?","WARNING", dialogButton); if(dialogButton == JOptionPane.YES_OPTION) { System.exit(0); if(dialogButton == JOptionPane.NO_OPTION) { remove(dialogButton); } } 回答1: You should

HTML no longer working in JLabel (and other components)

本秂侑毒 提交于 2019-12-21 04:22:15
问题 I have a java applet that I've written and have been running it for quite a while. In the applet I have a bunch of JLabels that use HTML in their text content (which is allowed, and has been working for years). The main reason I use HTML is to allow line breaks in JLabels. The issue: fairly recently the JLabels that have HTML in them (some don't) stopped displaying their text. I think it might have something to do with the recent java update (Java SE 6 Update 22, on 2010-Oct-12) not 100

Java 7u51/7u55 Manifest Variables with Asterisk

冷暖自知 提交于 2019-12-21 04:13:36
问题 I'm deploying an applet with the next variables in the manifest: Manifest-Version: 2.0 Ant-Version: Apache Ant 1.8.2 Trusted-Library: true Permissions: all-permissions Application-Name: My Applet Codebase: * Application-Library-Allowable-Codebase: * Caller-Allowable-Codebase: * I was wondering if by using the asterisk in the previous values, my applet (once deployed) can be blacklisted by Java or by Oracle in a future version or now with the 7u51 (or perhaps the certificate can be blacklisted

java 8u31 plugin causes signed applets to load much slower

自闭症网瘾萝莉.ら 提交于 2019-12-21 04:02:19
问题 i have noticed that signed applets are loaded much slower with the latest plugin (included in java 8u31 and 7u75). I have debugged the situation quite a lot and i found out that the problem is directly related to the size of the jar files that are referenced in the jnlp file. The problem is that each time the applet starts, there is some 're-indexing' of the cached jar files that takes time. To reproduce the issue i did this: I created a minimal applet and in the jnlp file i used to deploy it

Java applet cached forever, not downloading new version?

99封情书 提交于 2019-12-21 02:42:10
问题 We have a case where clients seem to be eternally caching versions of applets. We're making use of the <param name="cache_version"> tag correctly within our <object> tag, or so we think. We went from a version string of 7.1.0.40 to 7.1.0.42 and this triggered a download for only about half of our clients. It doesn't seem to matter which version of the JRE the client is running. We've seen people have this problem on 1.4, 1.5 and 1.6. Does anybody have experience with explicit cache versions?

How do I write a manifest file for the new java security barriers

只愿长相守 提交于 2019-12-21 00:37:06
问题 I have a Java applet that I need to deploy on my website. My website has a lot of pages and the applet appears on a number of them. My website's base domain is www.mycompany.com . But the applet will appear on, for example: www.mycompany.com/dog , www.mycompany.com/cat , www.mycompany.com/pen , etc. The package of the entry point is com.mycompany.MyApplet . Following the instructions at Java Security Manifest Changes in the Browser, I have created the below manifest for my app. Will someone

How do I write a manifest file for the new java security barriers

情到浓时终转凉″ 提交于 2019-12-21 00:36:12
问题 I have a Java applet that I need to deploy on my website. My website has a lot of pages and the applet appears on a number of them. My website's base domain is www.mycompany.com . But the applet will appear on, for example: www.mycompany.com/dog , www.mycompany.com/cat , www.mycompany.com/pen , etc. The package of the entry point is com.mycompany.MyApplet . Following the instructions at Java Security Manifest Changes in the Browser, I have created the below manifest for my app. Will someone