Redid program so that it uses a listener object. Mouse movement is now silky smooth.