public void mouseDragged(MouseEvent me) {

    int x = me.getX();
    int y = me.getY();
    vertSB.setValue(y);
    horzSB.setValue(x);
    repaint();
  }
 public void mouseDragged(MouseEvent mme) {
   System.out.println("dragged");
   int x = mme.getX();
   int y = mme.getX();
   int z = mme.getX();
   s1.setValue(x);
   s2.setValue(y);
   s3.setValue(z);
 }