Previous | Next | Trail Map | Writing Applets | Overview of Applets


What Applets Can and Can't Do

This page gives an overview of both the restrictions applets face and the special capabilities they have. You'll find more details in the Understanding Applet Capabilities and Restrictions(in the Writing Applets trail)lesson.

Security Restrictions

For security reasons, an applet that's loaded over the network has the following restrictions: Each browser has a SecurityManager object that checks for applet security violations. When a SecurityManager detects a violation, it throws a SecurityException.

Applet Capabilities

The java.applet package provides API that gives applets some capabilities that applications don't have. For example, applets can play sounds, which other programs can't do yet.

Here are some other things that applets can do that you might not expect:


Previous | Next | Trail Map | Writing Applets | Overview of Applets