Applets Section Index | Page 5
The getInsets() method reports the space used by the window's decorations like the title bar and any message bar. The value isn't valid until the applet is realized/displayed.more
PNG support is not native to Java until 1.3. If you want to display it with a prior version of Java, like the 1.1 VM found in browsers, you must find support elsewhere. One such source is Jimi. Fo...more
Untrusted applets cannot call System.getProperties(). They must get individual applet properties. Either ask for the specific property you want, assuming it is available from an applet, as not all...more
Yes. There are no required permissions to enable or disable assertion checking. This permits the applet to only access/alter classes from the same classloader, so doesn't expand access in any way....more
The Java Sound API contains support for playing byte arrays. Given that this question was submited to the Applets FAQ, I'm assuming you're not using a Java runtime new enough to support that. If y...more
About the only thing you'll need to know about applets is the default layout manager. It won't hurt to know the APPLET tag, the life cycle methods, and parameter handling. There is no mention of a...more
If you are using something like "CODE=../ClassName.class", you have to realize that the CODE attribute of the APPLET tag is not meant to specify directory names, only class names. To load the appl...more
Like getAppletInfo(), this method is rarely used. When implemented, you should return the names, types, and description of the parameters your applet accepts. They are all strings, so there is no...more
Absolutely none. Technically speaking, you can override the method to return the applet's author, version, and copyright. But, there is no way to get the information from the browser.
Applets loaded through appletviewer are more then likely loading their classes from the local CLASSPATH, not over the network. As such, they get different permissions and can do things that applet...more
Sun's latest Java Plug-in version directly replaces the VM in Windows browsers, forgoing the need to run the HTML converter.
Can Images respond to mouse events? Instead of a button, i need to use Images and want to load different images when different mouse events are fired. what i am currently doing now is drawing an im...more
The easiest way is to just call showDocument() and pass the method the URL of the PDF file.
All you have to do is specify the archive with a PARM named ARCHIVE. Something like the following: <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 790 HEIGHT = 478 NAME =...more