How do you change the coffee cup icon that appears in the top corner of frames?

John Zukowski

The setIconImage() method of the Frame class permits you to alter the icon displayed.

Image image = ...;
See How do I display an Image in an Applet or Application? for how to load the image.