FileDocCategorySizeDatePackage
ButtonDemo2_1_0.javaAPI DocExample523Sat Jan 13 18:09:56 GMT 2001None

ButtonDemo2_1_0

public class ButtonDemo2_1_0 extends Applet
Demonstrate use of AWT Button, JDK1.0 way

Fields Summary
Button
b1
Button
b2
Constructors Summary
Methods Summary
public booleanaction(java.awt.Event event, java.lang.Object what)

		if (event.target == b1)
			showStatus("Thanks for pushing my first button!");
		else if (event.target == b2)
			showStatus("Thanks for pushing my second button!");
		else showStatus("Huh?");
		return true;
	
public voidinit()

		add(b1 = new Button("A button"));
		add(b2 = new Button("Another button"));