APPENDIX

D   Applet Basics

As explained earlier in this book, JDK 9 deprecates the applet API. As a result, applets are not recommended for new code, with Java Web Start providing an excellent alternative. However, you may encounter legacy applets that require maintenance or that need to be converted into applications. Thus, for the benefit of those readers working with legacy applets, this appendix provides a brief introduction to the basics.

Applets are based on the Applet class. The Applet class is contained in the java.applet package. Beginning with JDK 9, this package is part of the java.desktop module. Applet contains several methods that give you detailed control over the execution of your applet. In addition, java.applet defines three ...

Get Java: The Complete Reference, 10th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.