Mouse can disappear outside of the screen after setDisplayMode()
I'm trying to implement a fullscreen function in a java program using DisplayMode. I've tried the example found at http://www.java2s.com/Code/Java/2D-Graphics-GUI/FullscreenDisplayModeTest.htm but have a problem with the mouse. If I move the cursor to the right after changing resolution the cursor disappears outside of the screen. Moving the mouse to the left doesn't make it appear again. Should the mouse be handled automatically after setDisplayMode() or do I have to set this in some other way?