cv.addComponentListener(handler);
static void register(wCanvas cv) {		// register event handlers    wEvent handler = new wEvent(cv);    cv.f.addWindowListener(handler);    cv.addKeyListener(handler);    cv.addMouseListener(handler);    cv.addMouseMotionListener(handler);}