import java.awt.*;
import java.awt.event.*;

    // Plot points in a frame where the user has double-clicked.
public class AWTClickExample {
    public static void main(String[] args){
        // The frame functionality is minimal, so don't bother
        // with a proper class.
        Frame frame = new Frame(){
            // Do everything in this initializer.
            {
                final int width = 200, height = 200;
                setSize(width,height);
                addMouseListener(new ClickPlotter(this));
            }
        };
        frame.addWindowListener(new WindowCloser());
        frame.setVisible(true);
    }
}

