public boolean mouseMove(Event evt, int x, int y)
  {
   Point p=cv.getLocation();
   x-=p.x;
   y-=p.y;
   int i=y*wi+x;
   if (i>=sz || i<0) return true;
   if (pickmode==0 ) 
   {
    setTitle(x+","+y+":(RGB)"+R[i]+","+G[i]+","+B[i]+ ((recording)?" * RECORDED:"+patc :""));
     colbut.setBackground(new Color(R[i],G[i],B[i]));
   } else
   if (pickmode==1) 
   {
     setTitle(x+","+y+":(RGB)"+R[i]+","+G[i]+","+B[i]+((recording)?" * RECORDED:"+patc:""));
   } else
   if (pickmode==2)     
   {
    askbuf[0]=R[i]/255.0;
    askbuf[1]=G[i]/255.0;
    askbuf[2]=B[i]/255.0;
    double[] ans=bp.ask(askbuf,Xdim);
    int k=interpretAns(ans);
    setTitle("I think it is:"+names[k]+((recording)?" * RECORDED:"+patc:""));
    colbut.setBackground(markerC[k]);
   }
   
   return true;
  }