I'm not completely positive, but I think JComponent's coordinates are mapped from their parent, not the whole screen. So, if you wanted to draw to the left, use

...