Applets Section Index | Page 18
To get parameters from the HTML file that loaded an applet, use the applet's getParameter() method. Specify the parameter name as the argument. For example, for the following HTML file: <APPLE...more
Untrusted applets do not have access to the local file system. In addition, there needs to be something listening on the server, waiting for the file. You are better off using a FORM and a servlet...more
You can find this question answered in the Microsoft Knowledge Base at http://support.microsoft.com/support/kb/articles/q214/8/28.asp. Hint, it isn't JDK 1.2.more
Microsoft provides a VM Uninstaller as part of their 4.0 SDK. See http://www.microsoft.com/Java/sdk/40/pg/tools_misctools_2.htm for usage information.more
How can I get my applets to start up faster when I use Netscape browsers? When I first hit a page with an applet on it I get this "Starting Java..." message that starts up the Java VM on demand, but adds to the applet startup time.
You can have the Java VM initialize itself when the browser starts up by adding the -start_java option to the end of the browser startup command in the startup shortcut/script.
Messages written to standard output (System.out) and standard error (System.err) appear in the Java console of the browser. From Internet Explorer, you can view the console from the View->Java ...more
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've recompiled my applet and want to use the new version. How do I get the browser to load the new version?
While testing applets, you're better off using appletviewer. As far as browsers go, pressing down the SHIFT or CTRL key when you select Refresh/Reload may cause the browser to load the new vesion....more
Applets must subclass the java.applet.Applet class (or one of its subclasses like javax.swing.JApplet). If they do not, the browser will not be able to load and start the applet.
Applet security restrictions do not let you get this in an untrusted applet via InetAddress.getLocalHost(). However, you can get this address by creating a Socket connection back to the web server...more
Untrusted applets are restricted to only communicate back to the host that delivered the applet. You cannot open a connection to any other URL besides the one from which the applet came.
You can directly access the following properties from an untrusted Java applet with System.getProperty(name): java.version java.vendor java.vendor.url java.class.version os.name os.version os.arc...more
Sun provides an HTML Converter tool (http://java.sun.com/products/plugin/1.2/converter.html) that will setup your web pages to include code that will cause the Java Plug-in to be needed to use the...more
How do I treat applet parameters as numbers instead of strings, since getParameter() returns a String?
Depending upon which type of number you wish to treat the parameter as, you would need to call the appropriate conversion routine of the corresponding wrapper class. For instance, to treat a Strin...more