java-applet

"Pick" JRE for java applet

Hi, We have a .NET application that is loading a java applet through the IE control. the problem started when we upgraded our server to 64 bit (window xp) and using JRE version to use 1.6-18. Since then, the applet is stop loading when it using the JRE 1.6 . I also tested it to see if it was running under 32 bit IE running on a 64 bit...

Detect when an Applet is loaded

How can I detect whether a java-applet has been loaded successfully without polling the browser /using setTimout ? Is there any event that I can bind to? The problem is: there is a pop up asking the user whether he trusts the applet or not, and that takes a few seconds until the user clicks "Yes" ,meanwhile my code fails to execute be...

Java applet security warning for application involving disk read

I have a java applet that is downloaded to a user's browser when they visit a webpage and allows them resumable file uploads to my server. Obviously, this requires the applet to access the user's hard disk, which I understand is outside the regular sandbox applets can run in. The user sees a security warning popup which asks for their pe...

Weird ClassNotFound error with applet

Error: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.Stuffez.UploadApplet.UploadApplet at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3013) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1444) at java.lang.Thread.run(Th...

Prevent Java Applet from gaining Focus

An applet gains focus when loaded, preventing browser keystrokes from working. You can work around this by adding a parameter to the applet tag: name="initial_focus" value="false" So far so good. But when the user clicks on the applet even if the applet does not have any user interface controls, then the problem remains. I guess anoth...

Do I have to close the browser in order to refresh my Java applet?

I am just learning Java applets. When I changed my code, it doesn't update if I refresh the page, but it does when I close the entire browser and open it again. I'm using eclipse as my IDE. Is there some setting I'm missing? Or is the only way to do it? ...

Connecting Java Applet with Database

I've got a simple problem... I've got an Java applet running on my client machine which needs to communicate with a database at my end. I'm not sure how I go about it. There are numerous problems such as untrusted applet coming up. Please point me in the right direction. Thanks in advance. ...

If I embed a GPL 2 Java applet into my web app, do I have to release the web app source?

Suppose I am working on a web application that has significant proprietary code, written in JavaScript/HTML/etc. Suppose further, there exists a GPL v2 Java application that has some related functionality I'd like to offer my users, when I deploy my app to various customer sites. So I plan to convert the Java application to a Java appl...

Can Java web applets do the same as offline ones?

I am looking to start a java web applet, as I need something that doesn't need downloaded (saved to computer) and for the most part will work for Windows and OSX. I have never done anything with java, so my question is can you do everything you can do with a normal java jar file on the web? More specifically, can you write a web applet...

Java applet: Read ttf file - access denied

I have the following lines in my Java applet init function: try { this.font = Font.createFont( Font.TRUETYPE_FONT, new File("fonts/myfont.ttf") ).deriveFont(24f); GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font); } catch(Exception ex){ System.out.println(ex); } When I open the applet with the applet...

Invoking an applet from another applet

Hello there, I have a scenario wherein one applet has to trigger the invocation of another applet. Please suggest me how I go about it. Sanjeev Gopinath V ...

how to deploy a java applet for local development

I simply put the class file and the html file in the same directory. And I call the applet with this: <p align="center"> <applet code="/ShowImage.class" width="200" height="200"> </applet> </p> Obviously this doesn't work. What is the most convenient way to setup local development? edit: My applet code: import...

Rails: InvalidAuthenticityToken while token is supplied

I'm trying to use an Java Applet for uploading files to my rails application. However I keep getting the following error and I can't figure out why: Processing CategoriesController#upload_image (for 127.0.0.1 at 2010-10-18 20:32:54) [POST] Parameters: {"partitionIndex"=>"0", "fileId"=>"8278320", "lastModified"=>"2010-09-18T14:31:...

Is the jtextarea.settext() method buffered?

Hi, i'm not a java developer, but i need to write a small applet to upload file via ftp (actually, i'm a web developer). Everything works fine, except for the way that feedback messages are displayed. Let me explain with an example: if i wrote sometingh like that, inside a method (controlled by a click event) //.... myJpanel.setText("C...

X-Button changing Color Value

I have been spending a lot of time on a 3-Color Averager it take the three colors from a JColorChooser instead of letting java create a dialog I made my own, it has the JColorChooser filling everything but the bottom were a single button labeled "OK" everything works fine except this I added a Window Listener and under windowClosing I ...