Skip to main content

Mouse can disappear outside of the screen after setDisplayMode()

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
linc
Offline
Joined: 2011-05-10

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?