JApplet

Palette category
Swing
Palette bean
JApplet
Project
JFC class libraries
Package
com.sun.java.swing
Type
JApplet

A JApplet-based bean provides the foundation for a program that can be downloaded and run in a Java-enabled web browser. To use this bean, specify com.sun.java.swing.JApplet as the superclass for a new applet bean.

The JApplet bean provides a content pane in which to place other components. The content pane provides logical separation of the applet from its child components. With the exception of a JMenuBar, user interface components are added to the content pane, which completely covers the JApplet bean in the Visual Composition Editor. The JApplet bean can be accessed from the Beans List. The default content pane, a JAppletContentPane, is represented in the Beans List as the child of the JApplet bean. You can delete the default content pane and replace it with another container component.

Use an Applet bean, rather than a JApplet bean, if you want to use AWT components in the applet. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Composing an Applet

Related references
Applet Beans
Beans for Visual Composition