Skip to main content

Mouse disappears outside of the screen after setDisplayMode()

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-05-10

I'm trying to implement a fullscreen function in a java program using exclusive mode. I've tried the example found at but have a problem with the mouse. If I move the cursor to the right after changing resolution (to a lower one) the cursor disappears outside of the screen. Moving the mouse to the left doesn't make it appear again. It seems as if only the top left corner of the screen is used for the window in some way. No MouseEvents are generated when moving the mouse once the cursor has disappeared.

I don't have this problem in Windows or OSX. I've also done some testing on a computer running CentOS (using Gnome 2.16.0 or KDE 3.5.4 on xorg-server 1.1.1) where everything works as expected.

I'm running FVWM (but I've tried running X without loading a window manager), java3d v1.5.2 and I've tried both sun-jdk- and icedtea-7.1.14. I've also installed Xfce and Gnome to see if it would make a difference but it didn't.

Any ideas what could be wrong?