Latest change: Sunday, 02-Jan-2011 16:13:02 CET
|
|||
|
|
|||
|
|||
|
|||
What beginners often get wrong is using of the correct JDK version. Because the JVMs (Java Virtual Machines) of Netscape 4.x browsers and of all MSIE browsers only support the outdated 1.1.x version of the Java specification you should always develop your Applets with a JDK 1.1.x. It's still available from Sun, so get it. Compared to newer versions of the JDK version 1.1.x is very restricted, slow and ugly. Nevertheless, unless you are very sure that your Applet is such a hit that every potential user will download and install a newer JRE prior to using it: stick to JDK 1.1.x because it's the only one widely supported by default. Thank Microsoft for that.
|
|||
|
|||
Because I am doing my implementation work on Linux Netscape's Navigator is always one of the first test cases for my Applets. So I know a lot of it's errors. Indeed I usually have Java switched off when I surf the net because Navigator often freezes when running Applets, especially for low bandwidth connections. The support of LiveConnect, i.e. the connection between Applets and JavaScript is still a lot better in Navigator than in MSIE. I haven't tried Navigator 6.0 yet because I didn't hear much good of it. But as far as I know it's using the Java Plugin from Sun, so the following problems should no longer occure.
|
|||
|
|||
Looking back it seems as Microsoft has won the browser war, seemingly using dirty tricks. But as they've announced their Java engagement canceled I'm wondering how they are planning to support Java in Internet Explorer in the future. Still using their own Virtual Machine or switching to direct support of the Java plugin? I would prefer the latter because that would mean less implementation and testing effort for developers. The Microsoft Java Virtual Machine is fast, but does not support all features the others do. At least LiveConnect is a lot more restricted, e.g. there's no support for arrays.
|
|||
|
|||
The JVM of Java's creators is of course some kind of standard. Not that it does not have bugs, but at least Sun is publishing them in their Bug Parade where you can find problem descriptions and sometimes even workarounds. To view the Bug Parade you've to become a member of the Java Developer Connection, but if you are earnest with Java, I would strongly recommend that anyway.
|
|||
|
|||
At the moment this chapter only handles one very dark area: printing. Generally the Java sandbox does not allow an Applet to print directly to the printer. If you are after that, you'll have to create a signed Applet, which is not handled here. What is possible is to print something from your Applet when the user prints the page (via File>Print) or frame where your Applet is in.
|
|||
|