CHAPTER 37—Applet Examples

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
Historical topic: Java appletsModern web browsers do not run Java applets. The Applet API was deprecated for removal before Java 25 and was removed in Java 26. Treat applet examples on this page as historical object-oriented/GUI examples; for new desktop interfaces use Swing where appropriate or JavaFX/OpenJFX.

created: 03/10/98; revised: 02/12/06

CHAPTER 37—Applet Examples

This chapter has some additional examples of applets and graphics. The examples illustrate programming as well as graphics.

Chapter Topics:

  • Graph paper graphics
  • Using Graphics methods to draw a picture
  • Calculating coordinates in a picture
  • Loops in graphics programs

In some of these examples, advanced features of Java could be used to great advantage. But the chapter uses only the features that have been covered so far.

QUESTION 1:

Do great artists plan their art before they start working?