FileDocCategorySizeDatePackage
ButtonDemo2c.javaAPI DocExample577Wed Jan 26 22:39:54 GMT 2000None

ButtonDemo2c

public class ButtonDemo2c extends Applet
Demonstrate use of Button

Fields Summary
Button
b
Constructors Summary
Methods Summary
public voidinit()

		add(b = new Button("A button"));
		b.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				showStatus("Thanks for pushing my first button!");
			}
		});
		add(b = new Button("Another button"));
		b.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				showStatus("Thanks for pushing my second button!");
			}
		});