- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    6
- 
        b86
- 
        x86
- 
        windows_vista
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-2158740 | 5.0u33 | Miroslaw Niemiec | P4 | Closed | Cannot Reproduce | |
| JDK-2171641 | 1.4.2_20 | Abhijit Saha | P3 | Resolved | Fixed | b01 | 
| JDK-2158739 | 1.4.2_19-rev | Miroslaw Niemiec | P4 | Resolved | Fixed | b05 | 
                    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);
}
}
            
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);
}
}
- backported by
- 
                    JDK-2171641 GraphicsDevice.getDisplayMode() returns null with ddraw disabled, Vista -           
- Resolved
 
-         
- 
                    JDK-2158739 GraphicsDevice.getDisplayMode() returns null with ddraw disabled, Vista -           
- Resolved
 
-         
- 
                    JDK-2158740 GraphicsDevice.getDisplayMode() returns null with ddraw disabled, Vista -           
- Closed
 
-         
- relates to
- 
                    JDK-7145508 [embedded] java.awt.GraphicsDevice.get/setDisplayMode behavior is incorrect when no display is present -           
- Resolved
 
-