java.applet (Java Platform SE 8 )
Keywords: java.applet package
Date: 2026-04-17

# Package java.applet

Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  AppletContext | This interface corresponds to an applet's environment: the document containing the applet and the other applets in the same document.
  AppletStub | When an applet is first created, an applet stub is attached to it using the applet's `setStub` method.
  AudioClip | The `AudioClip` interface is a simple abstraction for playing a sound clip.

- Class Summary
  Class | Description
  --- | ---
  Applet | An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application.

## Package java.applet Description

Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.

The applet framework involves two entities: the applet and the applet context. An applet is an embeddable window (see the Panel class) with a few extra methods that the applet context can use to initialize, start, and stop the applet.

The applet context is an application that is responsible for loading and running applets. For example, the applet context could be a Web browser or an applet development environment.

Since:
  JDK1.0

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.