import ____________;
import java.awt.event.*;
public class buttonQuitter extends _____ implements _____________
{
Button bQuit = new Button("Click here to Exit"); // Construct a Button.
buttonQuitter() // constructor for buttonQuitter
{
________( new FlowLayout() ); // Choose the layout manager.
bQuit._________________( this ); // Register the buttonQuitter object
// as the listener for its Button.
___( bQuit ); // Add the button to the buttonQuitter object.
}
public void _______________( ActionEvent evt)
{
System.exit( 0 );
}
public static void main ( String[] args )
{
buttonQuitter bQuit = new buttonQuitter();
bQuit.setSize( 200, 150 );
bQuit.__________( true );
}
}
|