public WindowDragger(Window window,Component component){
  fWindow=window;
  fComponent=component;
  mouseListener=createMouseListener();
  mouseMotionListener=createMouseMotionListener();
  fComponent.addMouseListener(mouseListener);
  fComponent.addMouseMotionListener(mouseMotionListener);
}

public WindowDragger ( Window window , Component component ) { fWindow = window ; fComponent = component ; mouseListener = createMouseListener ( ) ; mouseMotionListener = createMouseMotionListener ( ) ; fComponent . addMouseListener ( mouseListener ) ; fComponent . addMouseMotionListener ( mouseMotionListener ) ; }
creates a new windowdragger object .
