Applets Section Index | Page 3
You can specify tags to load both types of files, but only one tag will be used.
You can specify a custom text message by providing a BOXMESSAGE attribute to the tag that loads the applet. If the text message is the empty string, no message will be displayed.
The progress bar color can be changed by specifying a PROGRESSCOLOR attribute in the tag that loads the applet. You can use the color constants of the Color class, like "cyan", or specify the RGB ...more
With the Java Plug-in, how to do I change the font color for the messages when the applet is loading?
Use the BOXFGCOLOR attribute to specify the color. You can use any constant in the Color class or specify the RGB value as a comma-delimeted list.
The special BOXCOLOR attribute allows you to change the background color. You can use any constant from the Color class or specify the RGB value as a comma-delimited list: BOXCOLOR="cyan" BOXCOLO...more
Netscape Communicator browsers permit automatically starting the Java runtime at browser startup by specifying a -java command-line option. Is there any way to auto-start the Java Plug-in at browser startup with Internet Explorer, instead of having to wait until first needed?
Since the Sun Java Plug-in is third party code for IE, Microsoft could not anticipate your wish and reserve command-line parameters for it. What you could do is include an applet on your start pag...more
HTML (and .JSP) files are placed under the webapps/ROOT directory under the installation directory (or other than ROOT if you've defined a different context). Applet .class files would then be pla...more
Is it possible to use the addShutdownHook or runFinalizersOnExit (Class Runtime) to trigger the shutdown of IE or the plugin.
Is it possible to use the addShutdownHook or runFinalizersOnExit (Class Runtime) to trigger the shutdown of IE or the plugin. I registered a simple thread (prints out a message to the console, plug...more
This is no different than for an application or servlet. Just call the setDefault() method of Locale.
I tried to load an applet that didn't subclass java.applet.Applet and Internet Explorer didn't complain. What's up?
This is an interesting feature of Internet Explorer's non-standard VM. If the class doesn't subclass Applet, it will still load. The "magic" methods of applets won't be called though [init(), star...more
My applet works fine locally, but after transfering it to my web server, it doesn't work any more. What could the problem be?
If you used FTP to transfer the files, make sure they were transfered in binary mode. If the web server is a Unix-based system, make sure the owner of the web server process has at least read-acce...more
Nope. The browser may crash or just shutdown before it finishes running the method for all loaded applets.
If you have a user copy the class files for an applet to be loaded locally (via a file: URL instead of an http: URL), the applet security model is essentially thrown out and the applet can do anyt...more
Other langauges can be compiled to Java byte codes. Can I use them to create applets, or does the security model prevent this?
The browser's runtime engine doesn't care what language or compiler was used to generate the byte codes. As long as the byte codes are valid, the class verifier will let them be loaded. The securi...more
The expected behavior is case insensitive. However, implementations may vary. The javadoc for the method does not specify.