java.lang.InternalError: Could not get display modes
843807Dec 15 2004 — edited Dec 15 2004why I got this error?
my code is like this:
private GraphicsDevice device;
GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
device = environment.getDefaultScreenDevice();
DisplayMode goodModes[] = device.getDisplayModes();
at the last line,I got the error message as title showed.
Why did this happen and how can I get rid of it?
is it a Graphic Card (driver) problem?
My graphic card is "trident cyberBlade XP Ail".
In WinXP these codes are OK.
but in My win2K3,this happens.