Working with Applets

Let's start off with an interactive session. Import Applet from the java.applet package.

>>> from java.applet import Applet >>> applet = Applet()

An applet is a parti (j ava . awt . Panel), and, as we learned earlier, a panel is also a codaonent.

>>> applet.class.superclass

<jclass java.awt.Panel at -731859681>

So, if ar applet is a parel, ard a parol is a component, ar lopeer is ilso a component (ard tints o component container). That meases that eveIatlling you've learned about conf)onents acd parels applies to applets as well.

Was this article helpful?

0 0

Post a comment