This page demonstrates some applets related to Java applications discussed in Chapter 1
of Computer Graphics for Java Programmers, 2nd Edition. Section 1.3. A set of concentric triangles.
Exercise 1.2. Chessboard-like display of n x n sets, each consisting of k concentric
and rotated squares
Exercise 1.4. Hexagons (or chicken wire) of size defined by the user
Exercise 1.5. Dashed line, connecting two points defined by the user
If you don't see any figures other than rectangles, you may need to enable your browser for Java.
With Internet Explorer 7 you can do this using the Tools menu, then Internet Options, then Advanced,
to check the checkbox that enables Java.
This checkbox is somewhere in the middle of the list.
For applets that require some action by the user, such as those for the Exercises 1.4 and 1.5, the
first mouse click is just to activate the applet.
It then seems that the applet does not react until the second mouse click.
Exercise 1.3. Concentric squares, with the vertices of each next square on the
midpoints of the previous one