applet

Running specific version of java on firefox

In IE, I can use the classid "clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA" to tell it to use java version 1.5.0_11. Is there an equivalent for Firefox and other browsers? ...

Painting a Canvas in an Applet

Hi all, I currently have a small Java program which I would like to run both on the desktop (ie in a JFrame) and in an applet. Currently all of the drawing and logic are handled by a class extending Canvas. This gives me a very nice main method for the Desktop application: public static void main(String[] args) { MyCanvas canvas = ...

How to make full screen java applets?

Hello to all, 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...

What is the best mechanism for testing applets?

I'm trying to effectively build a functional test suite for an applet, and I'm trying to find a good framework for it. In the past, when I wanted to design a test suite that would serve as both functional and load testing on an application, it has always been a web-based application, or at least some kind of service-based application, a...

Can Applet open a new HTML window *and* bypass popup blocker?

Our java applet needs to open a new htm page to web browser but popup blocker seem to block this code: try { AppletContext a = getAppletContext(); URL url = new URL(link); a.showDocument(url,"_blank"); } can you use somehow live javascript to open a window instead? ...

Has anyone successfully used signature timestamps in a java applet?

Java 1.5 added an enhancement to support signature timestamps. The idea, as far as I can tell, is that signed jar files should not become invalid just because the code signing certificate has expired, as long as the files were signed while the certificate was valid. In theory, this means we do not have to re-sign and redeploy our appli...

Can a Java Applet use the printer?

Can a Java Applet able to print out text/html easily to standard printer driver(s) (with all common platforms Win/Mac/Linux)? Does it need to be signed? ...

How to securely trigger a Swing-Action in a restricted applet?

I simply want to call a swing action from my own popup menu. But since there is a security manager I need a solution to invoke this action without calling it directly. For instance the paste action of a text component will fail, because sun.swing.SwingUtilities2 cannot be loaded if there is any of my classes in the call stack. Is there ...

java.awt.HeadlessException - Applet not displayed

I am using Tomcat 5.5.23, JDK 1.5 on HP Unix. We have an application which when invoked form tomcat starts an applet. It was working fine till JDK 1.4. But now we have moved to JDK 1.5 and the applet does not start. The exception thrown is - java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an opera...

How to tell if my Java component is in an Applet?

I have a Component which I am using both in a standalone Java application as well as in a Java applet. How can I figure out from within the Component whether my component is in an applet? Also, once I figure out that I'm running in an Applet, how can I get access to the Applet? ...

Java Applets loading at snail's pace

I have a Java Applet application ( achart) on my php Webpage ... Problem here is the Java Applet takes more time to load ... I am thinking of replacing these applets with some similar technology but fast ... I am counting on Ajax... what are my other options ... ? ...

Applet with JRE 1.5 (IE6) fails to open HTML page over HTTPS, works with JRE1.6

Hello, I have a small (500kb) swing applet that displays small HTML page with JEditorPane. This works nicely with most browsers and JREs, but with JRE 1.5 (IE6) it seem to display just blank. There are no error messages on java console or exceptions. Applet is able to load TXT files with all JREs just fine, with JAVA CONSOLE tracing ...

How to use RMI with applet client behind a firewall?

How can I use RMI with a applet client behind a firewall? How can I use RMI with a firewalled server and firewalled applet client? (If possible) I know that the RMI server uses port 1099 (by default, but this is configurable); however after this the communication requires a new socket on a different random port. I also know that you ca...

Can a non-rectangular transparent flash object over an applet still allow the applet to "show through"?

I have a page with two iframes - a background picture + an applet a Flash swf with WMODE set to transparent. The Flash object draws a non-rectangular shape. Both iframes have "allowtransparency" set to "true". Positioning for both iframes is set to "absolute", and I've set up the Flash object to be on top of the applet. In FF3 ...

Why Java fails to use Verdana Font with Firefox3 under Terminal server? (AccessControlException)

The following GUI code is working in 99.99% of OS environments used by our customers: jStatusDescription = new JTextArea(); jStatusDescription.setFont(new Font("Verdana", Font.PLAIN, 12)); jStatusDescription.setText("test"); <-- crashes However, there are now 2 different customers both using Terminal server and firefox 3, the co...

Java applet using web services over ssl

I need to have my java applet use a soap based web service over ssl. I know that you can have a servlet act as a go-between/proxy, but I want to have the applet use the web service directly over SSL. The problem is supplying the certs to the web server hosting the web services. I supplied these Java Applet Runtime Settings via the Java C...

How can I detect the Java runtime installed on a client from an ASP .NET website?

I have an ASP .NET website that hosts a Java applet. The Java applet requires version 1.6 Update 11 of the Java runtime. How can I detect that a client has the appropriate runtime installed so that I can display an informative message if they do not? Thanks, Carl. EDIT: The solution must be platform independant. ...

Interacting With Java Applet

Does anyone know if it is possible to interact with a java applet via .net? Edit: I was able to use the UI Automation framework to locate the java applet, and from there use OCR to read data and simulate mouse/keyboard input into the applet. ...

Challenge when we maximize applet.

Dear Friends, I'm facing a simple challenge in applet. I'm writing an applet application consider some navigation aid in applet. When I'm minimizing or maximimizing the applet, resizing i.e size of the navigation-aid does not change when I maximimize the applet. How can I avail that ? Any opinions? Regards ...

How can I draw a filled rectangle in a java applet with half opacity?

How can I draw a filled rectangle in a java applet with half opacity/transparency? ...