Applets Section Index | Page 2
Where can I find a complete example of using RMI in applets?
Sun provides one in their Getting Started with RMI guide.
Can I prevent someone from downloading my applet's class files and installing them on their own machine/server?
No. If a file is downloadable from the web, anyone can download it, this includes applet files.
Are the attributes in the APPLET HTML tag sensitive to the order they are listed?
The applet tags like ARCHIVE and CODE are not supposed to be sensitive to the order they are listed. However, some older versions of browsers required the ARCHIVE tag to be before the CODE tag for...more
Where can i find a list of compatability issues between Microsoft's VM and Sun's Java 2 VM?
Microsoft VM and Java 2 Applet Compatibility Issues
How do i access the underlying DOM Document for my HTML Page of my Browser?
DOMService service = null;
try
{
service = DOMService.getService(MyApplet);
String title = (String) service.invokeAndWait(new DOMAction()
{
...more
Where is the Java Plugin Developers Guide for JDK1.4?
Java Plug-in 1.4 Developer Guide
How can I maintain a single instance of an object in an applet?
In start(), instead of always creating a new object, return the existing one if it exists or create a new one if it doesn't.
I have a class clientSocket that connect to the Server, sends some data and receives some data.
I have a class clientSocket that connect to the Server, sends some data and receives some data.
When I run this class from Applet within HTML page it's run fine under IE (4.0) NT env, but if i run...more
Can I use CAB files with the Java Plug-in?
No. CAB file support is specific to the Microsoft runtime. If you want to bundle your class files together with the Java Plug-in, you should use JAR files instead.
After calling the getAudioClip() method of Applet, when is the AudioClip loaded?
Until you try to play an audio clip, the AudioClip is not loaded.
How can applets from different codebases on the same HTML page communicate with each other?
You can use JavaScript and LiveConnect as a bridge. Let's say you have applet A and applet B. You should write 2 JavaScript called sendMessageToA(var s) and sendMessageToB(var s). Then applet A ca...more
How can I attach the jdb debugger to an applet running in the Java Plug-in?
Details are available from http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/debugger.html. Basically, you need to setup some configuration options within the Plug-in control panel be...more
How do I package Java extensions with applets? Do I have to unjar them and rejar them with the applet JAR file?
In the manifest file for the JAR file which loads the applet, you can specify an Extension-List attribute. Then, for each extension, there is a series of lines to add for each. One of these lines ...more
If my applet needs multiple JAR files, is there any way to optimize the download?
Consider indexing the .jar file. See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#JAR Index for more information about indexing. Basically, use the -i option when you create the JAR file.more
How do I initiate a JNDI lookup from an applet?
First, in the jar file of your applet you will need followin classes included:
Classes from the jar with the client portion of your specific jndi provider classes
Classes from the the jar conta...more