applet

Java Applet - Download File with Browser

Hello! I'm trying create a new file with a Java Applet, but I don't know how send this file to the response output of the browser, such as any tipical webpage. With a Servlet it is easy with "HttpServletResponse response", but is this possible with a applet? I'm trying do this without sign the applet or use any servlet. Thanks a lot!...

java.lang.NoClassDefFoundError when trying to embed an applet

So I wrote my code for a Snake game for a kid I know and the darned thing won't embed itself in html. <html> <head> <title>Snake</title> </head> <body> <applet width=200 height=100 code="SnakeGame.class"> </applet> </body> </html> and I am certain that the class file is in the same directory as snake.html, but it still refuses to run....

How to put an applet that is written with Netbeans into a html file?

I have written an applet that connects mysql. Since i connect mysql it uses additional library.(JDBC Driver for MySQL (Connector/J)) When i finished writing and try to run on Netbeans there is no problem but i did not figure how to put that class into a html file. Do i have to put whole netbeans project up or what should i do? ...

how can i send information from a java applet to my html/javascript/css?

Hello all, I have a simple page with a header on top and a java applet on the bottom. the applet uses an input (passed via php get parameter, aka index.php?url=http://www.image.com/img.jpg. This java script will calculate the average color throughout the picture. i'd like the header to match this average color. how can i send this info...

Creating a connection pool in a java command line application

Is it possible to create a command line application (without an application server) That uses a connection pool in order to access the database?. And how to do it? I've tried it using an InitialContext object and look up for the datasource in the context but since i don't have an application server i don't know how to access the resou...

How to grant permissions to a java applet being called by JavaScript via the java.policy file

I have a single sign on application for our intranet which is supposed to read a file off the local computer as well as get the users SID and verify that the user is valid. I have a jar that is embeded in the page and called by javascript. Inside the jar I have used doPrivileged() to allow the code to be called from javascript. The prob...

error when calling applet method with javascript

Hi i want to read network card identity of a machine using applet that only works on jre 1.6 & above. even applet loaded sucessfully on page loading , i was not able to call Applet methods with javascript. when i checked the applet functions by calling javascipt from button, it was working as expected. why i could not call applet fu...

Java - Set width/height of JLabel

I am adding an image into a JLabel and trying to set the width and height... but it's not working... help? as you can see here... the tiles are not 32 by 32... code: import java.applet.Applet; import java.awt.*; import javax.swing.*; import java.lang.*; import java.util.*; public class LayoutExample extends JApplet { Label msg...

Embedding a java applet in Wordpress

I have an applet that works alright on this page. It just references the .class file. (unfortunately, I have lost the source, and the jar files.) I want to reference it here, however it does not start. Probably because it cannot find the class file. the applet tag looks like this <applet code="/applets/language/LanguageEngineApplet.cla...

usability of Java applets in the web

Hi, For our eLearning project in our university, we are using Java applets to show some interactive stuff (like some interactive function plotting or some simple question/answer system or other interactive elements and any combination on those) inside of Ilias learning units. We decided for Java because we wanted an open solution (and ...

Java Applet GUI

Is there any program with a Java applet GUI designer? Thanks ...

Java cannot find symbol

I'm making a TCP Client in Applet mode and I get this strange error... C:\Users\Dan\Documents\DanJavaGen\ClientApplet.java:20: cannot find symbol symbol : method printStrackTrace() location: class java.lang.Exception e.printStrackTrace(); ^ 1 error Tool completed with exit code 1 teh code: import java.io.*; import java.applet.Appl...

fixed -Java Applet not loading - Client/Server

OK so I have this server and an applet... the server loads fine because It can detect when a new user loads up the client and connects... ANYWAYS.... the problem is that the Applet will not load... like... it is STUCK at the loading screen.... Here is a video explanation of my problem if you'd like: http://vimeo.com/13692709 (watch the ...

Java Applet, few question

Hi, i've got a few questions about applets in java. Let's say that my app is Desktop application using Lucene, database is quite big (2GB, more than 2K elements), and search query is complicated too. I want to make a applet application using source code of my desktop app. And i want to know: How heavy could i make applet? Is 7 MB t...

Tabbing in and out of Java applet on web page

I have a Java applet with several focusable elements that is embedded in a web page. Is it possible to make the elements in the applet part of the logical tab order of the rest of the page? To clarify: I would like to use Tab to move from an element outside the applet to the first element of the applet and then use Shift+Tab to move ba...

call c++ exe from java

Hi , I am trying to call c++ exe from java applet.For this purpose am using processbuilder.My code is as follows ProcessBuilder pb = new ProcessBuilder(s); Process process = pb.start(); final InputStream is = process.getInputStream(); OutputStream out = process.getOutputStream(); PrintWriter pw = new PrintWriter(new BufferedWriter(new ...

Screen capture of a java applet

I'd like to "capture" a screenshot of what a java applet would currently look like if it were loaded, effectively screenshoting an applet without the use of a vdu. The purpose of this is to display the image to a user that doesn't have a JVM. Lets assume the applet is a digital clock and has no requirement on user input. So what could b...

Java Applet Viewer - Disable Security Manager

I am using an applet and I don't want to sign it right now so how do I disable the security manager from the applet viewer? That way I can work faster. :) ...

Can Java Applets access external sources when given permission by the user?

I'd like to create a service where people can enter external websites, after which the returned source will be modified by my application (for whatever purpose) and then returned to the user. One would normally redirect all traffic through the server, so that the server is the one accessing the external source. This is because HTML5 and...

What permissions must be granted for applets to write temporary files?

We're developing an applet and need it to be able to read/write files in the user's temporary files directory (e.g. C:\Documents and Settings\USERNAME\Local Settings\Temp). The applet is signed, the user clicks the 'allow' option on applet startup, and the Java Control Panel has "Allow user to grant permissions to signed content" and "...