JDK-6740941 : The security icon and the flashy border is misplaced on WinXP and Win2K
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u10
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-08-25
  • Updated: 2011-01-19
  • Resolved: 2008-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b31Fixed
Related Reports
Relates :  
Description
After the fix for 6711576 the new function is used to determine the bounds of a top-level window: if running on Vista it uses a DWM-specific method to retrive the bounds, otherwise it must fall bacl to the old method of using the WinAPI ::GetWindowRect() function.

However, the logic in the if(){} statement was broken, and the old method was never invoked. This caused the method to return garbage instead of the real bounds of the window on systems earlier than Vista.

Comments
SUGGESTED FIX --- old/src/windows/native/sun/windows/awt_Toolkit.cpp 2008-08-25 18:24:08.000000000 +0400 +++ new/src/windows/native/sun/windows/awt_Toolkit.cpp 2008-08-25 18:24:08.000000000 +0400 @@ -1593,7 +1593,7 @@ load_dwmapi_procs(); - if (fn_dwm_get_window_attribute != NULL && + if (fn_dwm_get_window_attribute == NULL || S_OK != fn_dwm_get_window_attribute(hWnd, AWT_DWMWA_EXTENDED_FRAME_BOUNDS, lpRect, sizeof(*lpRect))) {
25-08-2008

EVALUATION See Description.
25-08-2008