Rectangle.getX/Y(), not MouseEvent.getX/Y().
"
sumukha " -
Welcome to the JavaRanch! We don't have many rules around the ranch, but we do have a policy on displayed names... Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names must consist of a first name and a last name.
You can change your user name
here.
Thanks! and welcome to the JavaRanch!