Applets Section Index | Page 19
I'd like for my applet to load my own custom version of a core Java class, like java.lang.String. How can I do this?
Applet security restrictions prevent browsers from loading classes from java.* packages from over the net.
I'm using a type 4 (pure Java) JDBC driver in an applet. It works fine in Netscape, but doesn't work properly in Internet Explorer. Why not?
Microsoft's VM loads classes/drivers differently than the Java VM in Netscape browsers (and Sun's reference implementation). Just having a Class.forName(driverClassName) line is insufficient, as i...more
How do I set the CLASSPATH for Internet Explorer?
You need to bring up the Windows Registry (regedit) to modify the CLASSPATH. You would find the appropriate setting under HKEY_LOCAL_MACHINE, then SOFTWARE, then Microsoft, and finally Java VM.more
How do I display a message in the browser's status bar?
To show a message in the status bar, you would call the showStatus() method of the AppletContext:
getAppletContext().showStatus(message);
Keep in mind that the browser can overwrite the message ...more
How do I get my applet to have the same background (image) as my web page?
Of the major browsers, only HotJava implements behavior
whereby the background color of a webpage is
inherited automatically by the root panel of an applet.
All the others set the default backgro...more
When used in an Applet/JApplet, does a Frame/JFrame show up inside the web page or as a new window?
If you add components to an Applet or JApplet, they will appear in the web page's assigned spot for the applet.
If you create a new Frame, Window, or Dialog (or their Swing equivalents), they will...more
Can I use the JDBC-ODBC bridge driver in an applet?
A: Short answer: No.
Longer answer: You may create a digitally signed applet using a
Certicate to circumvent the security sandbox of the browser. See the Certificate
jFAQ.more
How can I connect from an applet to a database on the server?
There are two ways of connecting to a database on the server side.
The hard way. Untrusted applets cannot touch the hard disk of a computer. Thus, your applet cannot use native ...more
How do I create an applet that accepts an unlimited number of parameters?
While there is some upper bounds to the number of parameters the browser will let you specify, if you would like to let a user specify an undefined number of values, you can let them specify a par...more
Where can I get the signtool program to sign applets for Netscape browsers?
This is available from Netscape at http://developer.netscape.com/software/signedobj/jarpack.html.
How do I extend permissions to an applet without editing the policy file manually?
A: Short answer: Forget about Java 2 security (i.e. the policy file) when creating applets. No major web browser currently supports that security model. Instead, place the applet in ...more
How do I increase the number of applets I can have loaded before Netscape starts pruning them?
By default, Netscape limits the number of applets loaded to 10. when that limit is exceeded, older ones will become elligible for garbage collection. To increase the limit, you would call the setA...more
What is the syntax of the <APPLET> tag?
<APPLET
// Required
CODE = appletClass or
OBJECT = serializedApplet
HEIGHT = pixels
WIDTH = pixels
// Options
CODEBASE = codebaseURL
ARCHIVE = archiveList...more
Where can I get the Netscape capabilities classes so I can compile programs that use Netscape's Capabilities API?
Besides pulling the classes out of the browser directory, you can download a zip file of the classes from http://developer.netscape.com/docs/manuals/signedobj/capsapi_classes.zip.more
How do I get rid of the Unsigned Java Applet Window message at the bottom of windows/frames I create in my applet?
This is a security feature to prevent untrusted applets from displaying what appear like trusted windows. If you sign your applet and the user trusts you, the message will go away.