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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access