The ImageLabel Class

ImageLabel is an extension to Canvas that lets you make a graphical component out of an image. It can then be used inside a Container in a manner similar to Label.

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 ImageLabelTest.java.

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

Error! You must use a Java enabled browser.