Applets Section Index | Page 19
AWT applets (those that subclass java.applet.Applet) cannot include an AWT MenuBar. Swing applets (those that subclass javax.swing.JApplet) can use the JMenuBar. To display menus in an AWT you wou...more
You can place any content you want between the start and end <APPLET> tags. A Java-enabled browser will ignore this content. When Java is disabled, the browser will display the content (othe...more
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
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
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
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.
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
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
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.