applet

Can a Java Applet use the browser's NTLM authorization header?

I have a Java Applet which needs to post some stuff to the web. The code, the author of which has long since disappeared, is currently using raw Java.net.Sockets to communicate with the server. On the server side, the client requests are authenticated with NTLM or Kerberos. For requests coming from the browser itself, each HTTP header g...

Accessing input type="file" full path from a Java applet

It is possible to access HTML DOM from an applet using netscape.javascript JSObject API. However, if I query a value of a input type="file", on some browsers (Opera) I get a full path to a selected file, but on other browsers (Firefox, Chrome) just a file name without path. Is it possible, having an HTML input type="file", to figure out...

Can I embed a Java applet in a Google Wave gadget?

If so, can someone point me in the direction of an example? Or even some code?! I'm guessing that I can't as the applet embedded in a gadget using the following... var div = document.getElementById('content_div'); div.innerHTML = "<applet CODE='http://www.echoecho.com/lake.class' width='370' height='200'> <param name='ima...

Applet JAR loading fails, since the http request doesn't include a basic auth header

It's a farily simple setup. A .jar is hosted on a site which is protected by basic auth. I try to load the jar with an object tag - which works perfectly when tested without authentication. When the .jar is requested from the server, the basic auth header isn't included in the request. Why is this? ...

java + eclipse + apple snow: missing javax.servlet.*

I'm trying to write a simple java applet program, but it seems that I'm missing the javax.servlet.* class definitions. Using: apple snow eclipse Java EE ide Do I need to add a specific JAR file to my project and if so, which one? I have Macports installed in case something from the ports might be helpful. ...

Java Applet - Convert File to String

How can convert a certain file into in a String? And then from that String to get the original file? This needs to realize it using Java. It would be greate an example of code or a link to a tutorial. Have to converted an entire File (not thecontent) in the String and then the String to the File. Thanks. ...

How do I load and display a remote jar applet in my applet?

I would like to load remote applets into my own applet. For example, lets say I want my applet to download and display a game from this site within my java applet: http://www.java4k.com/index.php?action=home How do I do that? ...

Java applets launched using deployJava.js not working for Opera/Chrome on Mac?

I noticed that the launching of Java applets using deployJava.js seems to have stopped working on some Mac browsers. Safari and FF still work, but Opera and Chrome send the user to Java installation page, as if the plugin was not found. Take for example this. If you click the launch button in Opera, it sends you to a Java installation...

Rad upload Java applet and z-index

I'm using Rad upload for drag and drop upload. It's working perfectly except I'm having a problem with the z-index. I'm also using jquery UI on the site and the overlay doesn't cover the applet. Any ideas on how to control the z-index. It would be nice if there where a setting like in flash where you control wmode. But I've tried z-ind...

Displaying an IFrame over an Applet? Bad idea?

Hi guys, In code I am working with there are instances where an IFrame gets placed partially over a Java Applet. I thought this approach was a "hack" and wasn't guaranteed to work correctly across browsers but up until now there hasn't been any show stopping bugs with the approach... Today however I found circumstances where on firefox ...

Viewing word office document in java applet inside firefox.

Hi, I am trying to view a .doc/.docx microsoft word files in a webpage on firefox. When all failed i tried creating an applet that will hold an instance of Word OLE to view the document. I created the applet using: org.eclipse.swt.ole.win32.OleClientSite, and with in eclipse it works fine and i can see Word inside. I created a .jar fi...

Any way to easily show a very large image in a Java Applet (using lesser parts)?

Hi, I need the functionality to show large images on a Java Applet without increasing the default heap space. I'm getting the "Out of memory" exception when reading the large image using ImageIO.read() into a BufferedImage (what was expected to happen). To solve this issue, the first thing that comes to mind is to divide the large imag...

Java Applet consuming client-side dotnet framework redistributable

I need to access and use some image manipulation api's other than java's, so is it possible to access the windows .net redistributable api's from a java applet that is signed. ...

Embedding a Java applet and provide installation option if Java is missing

What is the most user- and standard friendly way to embed a Java applet in a HTML page? Is there something similar to Flash's swfobject that will gracefully degrade if Java is not installed on the user's machine and give the user the alternative to install Java. ...

A strange issue... No code changes getting reflected.

I am using netbeans to develop an applet, i have a piece of code which looked like this: ipAddresss = DEFAULT_IP; System.out.println("portlet.services.hostname:" + ipAddresss); Now I changed it to something like this: ipAddresss = DEFAULT_IP; System.out.println("portlet.services.hostname using default IP Address:" + ipAddresss); ...

Is it possible to do big size image process on applet on browser in java?

Hi, i want to run the applet on the browser in java.I have to load and manipulate big size images on the applet. whether is it possible or not? can any body give me the resolution for the same. Thanks, Mishal Shah ...

Loading all files in a directory in a Java applet

How would one go about programatically loading all the resource files in a given directory in a JAR file for an applet? The resources will probably change several times over the lifetime of the program so I don't want to hardcode names in. Normally I would just traverse the directory structure using File.list(), but I get permission iss...

How to play sounds in Java games?

I'm successfully playing sounds in a Java (1.5) applet game using the following code: // get an available clip to play it Clip clip = null; for (Clip clipTemp : players) { if (!clipTemp.isOpen()) { clip = clipTemp; break; } } if (clip == null) { // no available player found, don't play return; } clip.open(au...

How does screentoaster.com capture your computer screen from the browser?

How does http://www.screentoaster.com capture a computer screen from a browser using Java Applet? Any suggestion or a lead in how to accomplish this? Is there other way to do using using different technology such as Flash? ...

how can i get fonts for text from client pc using Java Applet?

i am trying to get system fonts in applet form client side but it does not work for applet help required. ...