Last night i was trying to track down what was causing usage of the java.awt.Frame’s createBufferStrategy(int numBuffers, BufferCapabilities caps) method to fail when specifying a flipContents for a window that already (should have had) full-screen-exclusive mode on a windows machine, was throwing an error to the effect of “this operation is only supported on full-screen-exclusive mode windows”. There are several factors that contributed to my bafflement on this matter, first of which is that the app had changed the screen mode (as was clear from a quick task switch), so given java’s general refusal to change screen mode unless you aquire a fullscreen window i’m surprised that it would then fail to recognize that in createBufferStrategy. Even more puzzling, this behavior was observed with only one of the two java 6 JDKs i have installed.
-It occured with:
java version “1.6.0_07”
Java™ SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot™ Client VM (build 10.0-b23, mixed mode, sharing)
-But not with:
java version “1.6.0_01”
Java™ SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot™ Client VM (build 1.6.0_01-b06, mixed mode)
This is a troublesome problem as i was trying to use the flipcontents to force my game to vsync to avoid tearing, and also because i can’t seem to find any mentions of this problem from other people. Is this a known problem and does anyone have any suggestions for this(other than the obvious which would be to try the latest version - i’m worried about users who might have outdated versions of java 6 for which this could be troublesome if its not just a fluke)