applet

log4J with java applet and java plugin2

I have a java applet application running with java plugin2. The applet configuration is using a JNLP file, as supported by the next-generation java plugin architecture. Sun states that you should not use Class.forName in the context of a java webstart (or java applet) application. But I guess Log4j is doing it to configure the loggers,...

How can I load a Java applet from a dynamic server-side URL?

I want to load an applet from a server side script, eg. a Perl CGI program, etc. Can this be done? how? <applet code=A21 width=256 height=256 archive="http://url/cgi-bin/test.cgi?R=applet"&gt; thanks in advance for all help. ...

Strange Lightbox / iframe / Java applet issue on Firefox

I'm beating my head against strange issue using a combination of a java applet running in an iframe displayed inside a lightbox on Firefox. When the page is displayed directly an javascript call to the applet document.appletname.send Functions perfectly, however when called from inside a lighbox (actually lightwindow) then the erro...

loading java applet on DOM load

Hello, I searched for it a lot but probably I am searching wrong strings. A Java applet is feeding live bits into my pages, java applet accesses the input fields on my page and places the information <input type="hidden" id="F1" value="Nothing Yet"> and then it calls a javascript functionon the page say LivePicker() and then i...

Java applet display problem when i add it to dom tree via javascript

Hi All I have a modal popup as (lightbox etc.). If i want to add java applet into the modal popup via javascript i encounter a problem that is Java Applet don't display propperly sometimes dont' everytime. I tried to solve it setTimeout methot but it didn't solve :( Do you have a suggestion this issue? Thanks. ...

How can I use JAXB from an unsigned applet (without signing it)?

I would like to marshall Java objects into XML and vice-versa from within an Unsigned Applet and I can't change any of the security permission/policy files, or sign the application. I seem to get a Security exception, because JAXB is attempting to access fields or constructors that it can't in the applet sandbox. The browser is runnin...

Java applet with usb access in Windows and Linux

We're developing a kind of gadget with usb connection but would not to force our users to install any driver and program in their computers, so... ¿it's possible to develop a java applet that work in linux and windows and have usb access? (We're java developers but nerver before worked with applets) ...

Java's MSCAPI from Web Applett Error?

Hello, I am developing an application that uses Java's Crytographic Extension, more specifically MSCAPI, to sign a file using a user's private key all from a web browser. I have been able to do this succesfully locally, but when i embed the class in a web page and try to access users keystore i get the following error: "no such provider...

Which small java library should I use to sign PDF files within an applet?

We work with a software that has an applet that digitally signs PDF documents. This applet uses Itext to do this. However, IText jar is kinda large (1.5Mb), and many of our users don't have a good connection. Because of this, the applet download takes a really long time to be completed sometimes. So my question is: which alternatives ...

Applet getting Hang

I found following post http://stackoverflow.com/questions/370710/java-6-jvm-hang with somewhat similar exception that am getting. There is no deadlock. But many threads are in WAIT state. Stack trace is as follows. My Client JRE is 1.6.0_18. "Applet 1 LiveConnect Worker Thread" prio=4 tid=0x03382800 nid=0xe40 in Object.wait() [0x03acf00...

Control Oracle Forms with outside program

I work at a company that uses the Forms based Oracle 11i. A lot of employees complain of the redundancy of data entry and I want to write a program that will ease some of that pain since all attempts to ask IT to do it have failed. The problem is, since Oracle Forms are Java based there are no "controls" as there would be on say a wi...

I think i have a vector image format, how do use it to draw an image in php?

I have found an image format that is being used by some applets. but i don't know what it is. I think it is some kind of vector graphics format that is used by the GD library. could someone help me decode it? I would like to use the raw data to produce a png, in php the data is being generated from squiggles drawn by the mouse. Is t...

Can a signed Java Applet/Web Start manipulate content in a cross-site IFRAME?

Is it possible for a signed Java Applet or Web Start app to write to the DOM of an IFRAME under a different domain? Does the fact that they're a signed applet/javaws allow them to ignore browsers' standard cross-browser security? If this does work, how well is it supported across the major browsers? Thanks! EDIT: My motivation is to...

terminating java applet thread on page unload

Hello, I have got a problem here in terminating the threads. The problem is that I am using applet thread to access JS DOM and manipulate innerHTML of a span to right the Thread Name as the innerHTML. It works fine until I keep refreshing the page but if I dont give it a sleep of like 200ms and go to another page which dont have an...

Are these encoded codes?

hi, i used a decompiler to decompile a .class file it seems that it decompiled everything except some code at the bottom are very strange and since im new to java im not sure what they mean: static { String[] tmp5_2 = new String[6]; jsr 50; tmp5_2[0] = "pH@JeAE"; String[] tmp13_5 = tmp5_2; jsr 42; tmp13_5[1] ...

Using java applet to send request with the client ip

hi, i need to send a request to a website when a user submits their url, i tried using curl but it uses server ip which i dont want i have seen a website that is doing a similar job by using applet, users need to open a popup which contains the applet after they leave it open allow it to run it uses a port and then uses the localhost ip ...

Can I pass complex parameters to a Java Applet?

I'm really new to Java and I have to create an applet for signing documents electronically. The applet will be called from an ASP.Net web page application. Right now, I embed the applet in page as a <object id="EDOCApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"> and send parameters to the applet like this: <PARAM id="Edo...

How to unit test Java code that is expected to run within an applet Security Manager

I have some Java library code which sometimes runs as an unsigned applet. Because of this it is not always allowed to do some operations (for instance checking for system properties). I would like to run some unit tests with an Applet-like security manager so that I can verify that the code is either not performing any restricted oper...

Debug java plugin

Is it possible to debug the applet loading process of the java plugin? I don't want to debug my applet application, I want to debug the applet loading process of the java plugin2. I mean the jnlp/jar download, cache lookup, certificate check, etc. I know the java plugin is not open source, but it would help anyway. I'm trying to solve ...

How to avoid java.security.AccessControlException through jtwitter (twitter API) from java applet

I am writing a simple applet (my first) to retrieve the most recent status from a twitter account. This works fine when running from javaw.exe launched from within eclipse. However, when run from a browser I get the error: java.security.AccessControlException: access denied (java.net.SocketPermission twitter.com:80 connect, resolve) ...