applet

Adding mouseListener to my object in java

hi, I'm trying to make an applet which I can simply drag an image. And I want image object to listen events. So here is the applet code which simple run in a thread: import java.awt.*; import java.net.URL; import javax.swing.JApplet; public class Client extends JApplet implements Runnable { private static final long serialVersionUID =...

Starting OpenOffice from applet

I have this code down and this working fine from command line ... But when I put this in applet I get following error com.sun.star.lang.IllegalArgumentException at com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:158) at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.jav...

JavaFX applet won't work

Is anyone able to run JavaFX applets inside the web page? I am not. I also tried applet here: http://weblogs.java.net/blog/aim/archive/2009/07/bounds_unleashe.html (on the bottom) but it doesn't work for me. Tried on Ubuntu and Windows, on IE and Firefox. All I can see is endlessly spinning Java logo. What can be the problem? ...

Giving relative path to java applet param

How can i tell this java applet to take the .jar file from the same folder where the .html file is? I have tried every possible way i know, and only "http://localhost/blabla/some.jar" or "file:///c:/blabla/some.jar" works in that case, so i need to type the absolute path every time. Is it possible to make it working with the relative p...

How can I change te background color of a Java applet?

Greetings, So far, my code compiles, but it changes white to black and then don't want to change. Supposely it should change from red->orange->green->pink->blue->black.. public void init() { c=new Color[] {Color.red, Color.orange, Color.green, Color.pink, Color.blue, Color.black }; btnNext = new Button("Next...

Catching applet exceptions in Firefox

In IE in the ff. code, the catch clause is entered if someMethodThatThrowsExceptions does throw an exception. However, this is not the case in Firefox. Is this a limitation in Firefox's Javascript engine or LiveConnect implementation? Does a workaround exist? try { document.applets["someApplet"].someMethodThatThrowsExceptions(); } ...

Focus should come to an applet in the IE when IE becomes as active window.

In an applet when opened in Internet Explorer,the focus should come back automatically to applet instead of going to IE when any window comes over IE and goes back (Internet Explorer again becomes the active window). To get the focus RequestFocus() and RequestFocusInWindow() are not working for an applet in my case. Can any one explain...

String data passed to Java Applet by javascript is null when in Java applet

This question may look familliar but I've discovered some rather more pertinent information and tried some other things (which are detailed below) so to avoid confusion I've created another question. Here's the JavaScript (on an aspx page): function CallApplet(clientRef, system, branch, category, pdfXML) { AppletReturnValue...

Console output retained in char[] causes OutOfMemoryError

I've got an applet that keeps running out of memory. A heap dump analysis shows that the culprit is a char[] owned by the traceMsgQueueThread that contains the entire contents of the java console output. This grows over time as log messages are sent to the console until eventually the applet runs out of memory. This only seems to occu...

How to debug/log/trace an applet loading problem?

Recently two of our clients have reported problems with our applets. Looking at the java plugin console it is full of ClassNotFoundException so none of our code is executed. I've been able to reproduce the stack trace using a virtual pc image with 0 free space on disk, but the problem goes away as I restore some disk space, and the user...

How can Facebook's photo upload application access the local harddrive?

I didn't think it was possible for client side applications to access the harddrive? How can this application do it? Can a signed Java applet get access to your peripherals? I know that flash can... ...

Can a java applet manipulate the HTML page containing it?

Hi, I wanted to know if I can write something on the HTML page containing my Java applet from within the applet. More generally, what interactions are possible between these two? Thanks. ...

Determine whether client browser has java installed and can launch applets

Hi, I am developing an .aspx page which will ultimately launch an applet after the user clicks on a button (I am using the <applet> tag). So, I would like to detect if java is enabled/installed on the user's browser. I am using navigator.javaEnabled() method. However, even though this is working fine on IE7, it is returning inconsisten...

Is there a way to read the browser's cookie from a java applet?

I have a java applet that needs to do http requests to the server. A quick experiment showed that the session id cookies from the browser is not sent along, so i'll have to set it manually. Currently, I see 2 possible solutions: somehow get hold of the cookie data from within the applet pass the cookie information into the applet's c...

How do you pull up the java console in OpenSUSE or Ubuntu?

Hi, I'm working on a java applet, and I was wondering where the heck System.out was going in Ubuntu/OpenSUSE. In windows, I just pull up jconsole, but I've not found this in Ubuntu/OpenSUSE. Thanks. ...

Preventing an embedded applet from launching immediately?

Due to timing issues, I'm trying to prevent an applet from loading until a page is completely loaded ($(document).ready(...);). However, I'm using the java deployment toolkit to launch the applet, which naively uses document.write to push data to the browser. Obviously, this breaks horribly if I attempt to run the applet after the is wr...

Applet / Web based installer permissions

I'm trying to write an (trusted) applet based installer that registers my code as a URL or MIME handler, so that it can auto-open whenever the user clicks a particular link. Do I need any special permissions (apart from the applet being Trusted) and does it pop up a massive number of warning boxes? ...

Is Java's applet the only way for the Java SE to work on a website?

Does Java SE (Standard Edition) offer a way to make its programs work online beside the Applets? Or is the applet the only way to do that? ...

Java Webstart with parameters

Can I launch a Java WebStart application with a set of parameters just like an applet is configured with the <param> tags ? Thanks ...

Can a Java applet retain a socket connection when going to a new web page?

I have an applet that I want to maintain a socket connection between multiple web pages. Currently, when a transition is made to a different page, the socket connection is closed. Is there anyway of maintaining that connection between web pages? Or, do you have to reconnect the socket after each web page transition? ...