public boolean handleEvent(Event evt)
    { if (evt.id == Event.WINDOW_DESTROY) closeSelf();
    else if (evt.id == Event.SCROLL_ABSOLUTE ||
            evt.id == Event.SCROLL_LINE_DOWN ||
            evt.id == Event.SCROLL_LINE_UP ||
            evt.id == Event.SCROLL_PAGE_DOWN ||
            evt.id == Event.SCROLL_PAGE_UP
            )
    {
        Segment seg=whichSegment(evt.target);
        if (seg==null) {
            if (true) {
                updateTime();
                return  super.handleEvent(evt);
            }
            else return super.handleEvent(evt);
        }
        double newbeta=seg.beta_sb.getValue()*Math.PI/1800;
        obj.constrainedRotate(seg,newbeta-seg.beta);
        HV.cv.refreshDisplay();
        // LETS calculate the forces
        //    MotorPlan mp=HV.mcirc.fixedMotorPlan(((Hand)obj),HV.self.getCurrentObject());
        // ((Hand)obj).contact(HV.self.getCurrentObject());


    }
        return super.handleEvent(evt);
    }