a gesture recognizer in Java