FileDocCategorySizeDatePackage
ByeBye.javaAPI DocExample624Sat Nov 25 12:54:08 GMT 2000None

ByeBye

public class ByeBye extends Applet implements ActionListener
BadGuy demo -- exit from within an applet (just to show that it has no effect).

Fields Summary
Button
b1
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent event)

		// User pushed the (one and only) button, so we exit.
		System.err.println("And now, byebye!");
		System.exit(0);
	
public voidinit()

		System.err.println("In byebye::init()");

		setLayout(new FlowLayout());
		setFont(new Font("Helvetica", Font.PLAIN, 14));
   
		add(b1 = new Button("Exit"));
		b1.addActionListener(this);