AbsoluteMouse area constraint

Is there a way of changing the area constraint on an AbsoluteMouse. I'm using a SimpleCanvasImpl to render a canvas onto a JPanel with an AbsoluteMouse to handle the user interaction. The problem I have is that when the application is resized so is the JPanel. I'm making a call to setLimit(width, height) in AbsoluteMouse but tha constrained area isn't changing.



I notice that the Javadoc for AbsoluteMouse says that the constraint area for an AbsoluteMouse is set when the mouse is created. Does this mean that I have to continuously create new instances of AbsoluteMouse when the window resizes or am I missing something after calling setLimit?

try hardware mouse. it has been working very well for me all the time.



just do



MouseInput.get().setCursorVisible(true);