mouseListener now applies to content pane not JFrame, so the mouse is not offset by the window border size