Motion Tracking (3)

class Tracker implements ComponentListener {
    private Label label;

    Tracker(Label l) {
        label = l;
    }
    public void componentHidden(ComponentEvent e) {
        // empty
    }

    public void componentMoved(ComponentEvent e) {
        showGeometry(e);
    }

    public void componentResized(ComponentEvent e) {
        showGeometry(e);
    }

    public void componentShown(ComponentEvent e) {
        // empty
    }


Slide 44 ©Copyright 1997 Jan Newmarch