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
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
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
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
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
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
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
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
This is available from Netscape at http://developer.netscape.com/software/signedobj/jarpack.html.
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
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
<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.