I guess we all should have noticed that one!
ps your code is a long version of
public boolean isClicked(int a, int b) {
return (a >= x) && (a <= x+width) && (b >= y) && (b <= y+height);
}
(I also rearranged the tests to make it clearer what they were doing, and to include clicks right on the boundary line)