Yes. A panel must be added to a component. Since a panel can live in a frame then it's cool. Since an Applet is a subclass of Panel then the browser takes care of displaying the panel. Try this code:-
Visible base for other components could be just Frame, Dialog , Applet, at least in AWT. Hope did not forget anything . FileDialog visible by itself as well, but it has no option to add components.