Added cursor support for components, removed JPanel dependency for #getMousePosition