applet

Security considerations when hosting signed jars

What are the security implications for hosting signed jars on the internet? As I understand jar signing, once a user choose to auto-accept a certificate, it doesn't matter if the signed jar came from your domain, linked from another domain or hosted on another domain. For example, Sun uses this method to give applets OpenGL support, by ...

How to know if is Applet or Application

I have this code inside a class that is used by an application and by an applet. static { if (System.getProperty("os.name").startsWith("Windows")) { System.loadLibrary("extmapi"); } Unfortunately, when the applet loads this code I get an error, because it can't load the "extmapi" library. To avoid this erro...

Warning Symbol Unsigned Java Applet

In the recent update of java (6.10) http://java.sun.com/javase/6/webnotes/6u10.htmllink text the way that unsigned applets was changed. A warning is now displayed. Is it possible to turn this off without signing your applet? ...

Can you send dynamic data to a processing applet?

I have an ajax page which pulls data from a database. I'd like to add a processing applet to visualize the data but i can't figure out how to update the visualization as the data changes. The idea is to be able to push new data into the visualization. I'm not tied to the processing technology, anything will work. Processing just seems t...

Creating a child applet window from a parent applet

How do I create an applet window outside the web browser from within an applet running in that browser? ...

Does anyone know of any good tutorials for the Slick 2D lib?

There is a 2D java graphics library called Slick 2D (http://slick.cokeandcode.com/) that seems to be used by a bunch of indie games (mostly applets), but the documentation is a little lacking. Does anyone know of any good tutorials for this lib? ...

How to resize a java applet when the browser is resized?

I have a java applet that is embedded in html using the object-comment-embed method. I would like to resize the applet whenever the browser window is resized. I have found solutions around the internet, but they all work based on the deprecated applet tag. Also, when trying a setSize() call on my embed element in FireBug, it will resize...

JavaFX is now out: Are Applets and Java Desktop officially dead/dying?

JavaFX is now out, and there are promises that Swing will improve along with JavaFX. Gone will be the days of ugly default UI, and at long last we can create engaging applications that are comparable to Flash, Air, and Silverlight in terms of quality. Will this mean that Java Applets that hail from 1990's are dead and not worth going b...

How to get browser type and version from within an applet?

Is is possible to query the current browser from within an applet? I would like to know if the current browser is IE6 or IE7. ...

Is there any plugin framework for Java Applets?

We have a large Java application that run as applet or Java Web Start. And it grow more and more. Typical a user need only a small part of the classes. Because Java does not know which class can it found in which jar file that it load all jar files until it find the class. If it will load a class that not exist (for example a resource bu...

Java: In what order are the methods called in an Applet?

Of all these methods what's being run and in what order?? I guess the first question to ask is whats being run first? And why does th.start() start run()? import java.applet.*; import java.awt.*; import javax.swing.JFrame; public class BallApplet extends Applet implements Runnable { int x_pos = 10; int y_pos = 100; int ra...

Java Applet refresh problems

I have a Java Applet (JApplet). This Applet uses a JComponent(PanelAux) to show values and images that change periodically. But the applet doesn't refresh itself. What can I do to refresh my applet? //--------------------------------------------RUN public void run() while (true) { try { myThread.sleep(1000); ...

What is the best framework for desktop applets to begin with?

I would like to make a simple desktop application to learn this kind of thing. What language would you recommend for beginner? Would you recommend using framework for beginners? I'm experienced only in javascript and little bit of PHP. What do you say about cappuccino? ...

How to save an image-file on server through Java applet?

I have a paint application that runs as a Java applet. I need to save the contents of the canvas on server machine in any image-format typically PNG. Please help! ...

Applet User-agent

Hello! This is a simple question, but I didn´t found any documentation about this. When an applet makes a request, how is the user agent of the request. I want to know the applet user-agent expression to detect if a request comes from an applet. I make two test, with IE7 and Firefox 3.0.5 with JDK 1.6.0_03 and the user agent was "Mozil...

How to display java applet inside GWT page?

Hi, I'm probably missing something simple here, but I can't find the answer elsewhere. I just want to display an applet in my GWT code. OS: Windows XP Java: JDK 1.6.0_10 Other: GWT, GWT-Ext 2.0.5 Here is the applet (obviously simplified for testing): package foo.applet; import javax.swing.JApplet; import java.awt.Graphics; public c...

applet or activex for a graphical overlay plugin (IE)?

I'm looking to write a plugin for IE that will do a little parsing of any webpage and display a layer atop that page that my users can interact with (an analytics heatmap might be my closest example). I'm trying to decide whether this should be written as an Applet (which I'm leaning towards), or an ActiveX control? Also, anyone able t...

Applet with Gui Designer

Hello, I want to ask you if there is a possibility to program a Java Applet in netbeans 6.5 using the GUI Designer. When I was adding a new file to the source and choose Applet or JApplet, I found now Designer as in a JForm for instance. With kind regards Sebastian ...

Viewing HTML inside Applet without using JEditorPane

Hello, I have a small (500kb) swing applet that displays very simple/limited set of small HTML page(s) inside it with JEditorPane, however this does not seem to work 100% fluently, some customers get a blank page displayed without any java exceptions. The page works OK from my machine. I need a more reliable way to show HTML page to al...

J2ME and (open source) applet signing for Mobile Devices (esp. phones) - what can I do?

I've just discovered J2ME and I love the possibilities that it presents. I'm currently working on a simple application and I'd like to maybe release it as an open-source project sometime in the future. As part of my research into J2ME and mobile devices, I looked into applet signing. It seems that people who want to create applets for...