O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Improving Applet Downloads

Waiting for an applet to finish downloading can be annoying at times, especially for a big applet. A quote like "Great applet, but it takes 5 minutes to download" does not inspire people to run out and try it.

Although there aren't any tricks to shove bits through the network any faster, you can make your applets aware that things might take a while and give the user something to do while he waits.

One of the many nice features of Java is that it can load classes while a program is running. There are some limits on this, however.

If a method references a class, that class must be loaded before the method is executed. Java uses a one-time lookup mechanism for efficiency. The first time an instruction referencing another ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required