FileDocCategorySizeDatePackage
PictureButtonApplet.javaAPI DocExample492Tue Mar 04 01:27:06 GMT 1997None

PictureButtonApplet

public class PictureButtonApplet extends Applet implements ActionListener

Fields Summary
Image
image
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

		System.out.println( e );
	
public voidinit()

		image = getImage( getDocumentBase(), getParameter("image") );
		PictureButton pictureButton = new PictureButton( image );
		add ( pictureButton );
		pictureButton.setActionCommand("Aaargh!");
		pictureButton.addActionListener( this );