Use the attached testcase to reproduce the problem.
The results of the test running is following:
on Vista:
using -Dsun.java2d.noddraw=True returns null
using -Dsun.java2d.noddraw=False returns not null value
on XP:
returns not null value in both cases
============TESTCASE==================================
import java.awt.*;
public class GetDisplayModeTest{
public static final void main(String args[]){
GraphicsDevice gd =
GraphicsEnvironment.getLocalGraphicsEnvironment().
getDefaultScreenDevice();
if (!gd.isFullScreenSupported()) {
System.out.println("Full Screen is not supported, test considered passed.");
return;
}
DisplayMode dm = gd.getDisplayMode();
System.out.println("Display Mode = "+dm);
}
}