The ImageButton Class

ImageButton is an extension to the ImageLabel class that lets you create buttons that contain images. It can then be used inside a Container in a manner similar to the standard Button.

A small example is shown below. For more information, see the documentation or download the source code. The source code for the test case is at ImageButtons.java.

For more examples, see the Core Web Programming source code archive.

This requires Java.