• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't enumerate display modes  RSS feed

 
Neville Campbell
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code results in an internal error when run with JDK 1.4 on my pc:
GraphicsEnvironment graphicsEnvironment =
GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice device = graphicsEnvironment.getDefaultScreenDevice();
DisplayMode[] modes = device.getDisplayModes();
Here's the error dump:
java.lang.InternalError: Could not get display modes
at sun.awt.Win32GraphicsDevice.enumDisplayModes(Native Method)
at sun.awt.Win32GraphicsDevice.getDisplayModes(Win32GraphicsDevice.java:291)
I am using NT 4.0 (Service Pack 6A) PC with a (~5 year old) Matrox Impression Plus video card.
Is the problem with getDisplayModes() or with my system configuration, such as a bad video driver?
Are people generally having good experiences with the Full-Screen Exclusive Mode API?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't personally had any problems with the FullScreen API, but looking at the bug reports on Sun's site shows a bug that may be related to your problem...

-Nate
 
Neville Campbell
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getDisplayMode() always throws an InternalError on my system, which completely block me from using the full screen API since setFullScreenWindow() calls getDisplayMode(). I've reported the bug to Sun.
I am less worried about the utility of the Full Screen API on my system than its general reliabiliy with the installed base of PCs. Does anyone have any feeling for the actual applicability of this API for the installed base of PCs?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!