This applet illustrates the use of my ImageButton class, a simple class to support buttons which display an image, rather than a textual label. This applet just loads two images, uses them to create two ImageButton objects, lays them out, along with a TextField, and processes button clicks. When wither of the buttons is clicked, a message appears in the TextField.

Sources:
ButtonApplet.java
ImageButton.java