You can use checkboxes to represent a set of boolean options that are not mutually exclusive. For example, in a print dialog, you might want to let the user select a number of printing options, as shown in Figure 13-1.
Checking or unchecking any of the four checkboxes in the applet updates the applet's status bar to reflect which items are checked and which are not. The applet is listed in Example 13-1.
import java.applet.Applet; import java.awt.*; import java.awt.event.*; ...