applet

Can I make my Applet end more gracefully?

I have a JApplet which I contains various Swing components. It also starts a couple of extra threads in the init() and generally does other pretty standard applet-y things. If I close the browser window containing the Applet, the JRE doesn't die (the icon remains in the system tray) until all the browser's windows have been closed (ie ...

Sharing ASP.NET session cookies with a Java applet

I have a Java applet that runs inside a forms-authenticated aspx page. In the .NET 1.1 version of my site, the applet has access to the session cookie and is able to retrieve a file from the server, but in the .NET 2.0 version it fails to authenticate. I have seen a couple of forum posts elsewhere that state that 2.0 sets cookies to Htt...

Java Applet and Browser Freeze

Hello, Is there a best practice for avoiding a browser freeze when loading an applet? For my precise needs, the applet needs to be loaded when the web application is initialized, and is not a visual component (will be in a hidden div or hidden iframe). As a reference, here is an old bug on SUN's side. ...

Java Media Framework on client side?

If I’m writing an applet that shows a video sequence (eg. streaming from a camera, or the applet itself is running the on the camera), do my clients need to download the Java Media Framework libraries inorder to see the sequence? ...

How do I permit my Java applet to use MySQL?

I've recently gotten my hobby java project embedded into a page thanks to this very site, but now I'm having some security issues. I have the include: import java.sql.*; and the line: Class.forName("com.mysql.jdbc.Driver").newInstance(); as well as a mysql .jar file in my src directory, it works from the console, and in the applet...

save applet from website

how can I save a java applet from a website so I can run it offline? ...

Applet - 'java.lang.NullPointerException: null pData' when browser closed

I have one user who gets an error message when he closes his browser. This only happens when he has visited a page which contains my applet. It seems to have been registered as a bug at Sun but that was many years ago. He is using Java 1.6 and IE7. Has anyone seen this before and know a solution or work-around? java.lang.NullPointerExc...

Java Applet Locale setting

I am running an english language version of WindowsXP, but have set Spanish as my only accepted language in Firefox. I had naively expected the browser's language to be set as the default when I load an applet in a browser session, but this does not appear to be the case. The applet starts up in English, the default language of the OS. ...

Looking for a "Universal" Document viewer implemented as a Java Applet or with a Java SDK.

I am looking for an Applet with similar functionality to the Oracle/Stellent OutsideIn ActiveX control or the Autonomy KeyView technology that act as a browser plug-in allowing the rendering/display of a large number of file formats (Word processing, spreadhseet, graphics, etc.) I currently use the Stellent solution, but due to some rest...

JFileChooser use within JApplet

Can a JApplet use a JFileChooser so that the user can select a file on his hard-drive? Or would this violate Java applet security? (I'm assuming that the default security settings are being used. I don't want to ask my users to grant me extra permissions.) ...

What happens to an applet when browser is closed?

Hello, Let's suppose I have an applet running within a page in a browser. What happens when the browser is closed by the user? Is the applet notified so that it can perform some kind of close action on its side (closing connections opened to a server, cleaning static variables, ...)? Also, I assume the same behavior would apply for a ...

Java applet: IE Browser hangs after opening a file dialog. Workaround?

This is a registered bug (Bug ID: 6515708) but does anyone have a workaround for it? Scenario javascript calls OpenDialog() method in applet applet starts new thread which opens the AWT FileDialog on completion, the file name is read and the javascript method OnDialogComplete is called At this point the dialog is disposed and (on some...

Java applet/Firefox incompatibility problem

I've written a Java applet. A user reports that he tried to run it in Firefox 3.0.3 on OS X 10.5.5 but no go. It wants him to download a plug-in, but when he tells it to install missing plug-ins it can't find the appropriate installer... What is going wrong here? ...

Does a Javascriptable FTP Upload Java/Flash Applet exist?

To be able to upload large files from a HTML page to a FTP server, I am looking for a Java/Flash FTP upload applet. I really like the way dhtmlxVault works, but I need it to upload to a FTP server instead of a HTTP file upload. It would be really nice if the applet has no GUI of it's own, but instead is fully scriptable using Javascrip...

Problem with applet loading on Mac OS x 10.4

Hello, I have been working on web application which includes java applet. My app is working fine on PC with different browsers like IE and Firefox. The web application hosted on Linux (Ubuntu). I had problem on Mac with Firefox. I was unable to load the applet. This is the error i found in java console. Java.lang.classNotFoundException...

Java <-> Javascript for non-Applets?

I'm working with an existing Java codebase which, while it can be invoked from an HTML page using an <APPLET> tag, does not actually subclass the Applet class. The same jars are also used in a non-browser context, so they did not subclass Applet. Now I need to communicate some values from Java back to the Javascript of the invoking page...

How to register a JavaScript callback in a Java Applet?

I'm developing an invisible Java Applet, that will be controlled entirely from JavaScript. I can call the applet's Java methods easily, and I can call JavaScript methods from within the applet by using netscape.javascript.JSObject.getWindow(this).call(). But in order to register a JavaScript callback in the applet, I guess I would need...

how to open webdav link with correct program on client?

We have a browser based application which integrates a webdav server. We generate URLs to specific documents on our (webdav) servlet. (https://server.com/webdav/path/to/file.doc) What we are looking for is a good way for our clients to open these links directly in the appropriate program. I.E. for a windows user, "https://server.com/web...

How to get rid of the white rectangle flashing that occurs during Java applet loading ?

While an applet is loading, it displays a white rectangle for a split second. How can we get rid of it? ...

how to (simply) generate POST http request from java to do the file upload

I would like to upload files from java application/applet using POST http event. I would like to avoid to use any library not included in SE, unless there is no other (feasible) option. So far I come up only with very simple solution. - Create String (Buffer) and fill it with compatible header (http://www.ietf.org/rfc/rfc1867.txt) - O...