-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
This is a Windows-specific problem.
WinXP added the PrintWindow() API that allows one application to take an image copy of another app's window, even if the window is off-screen or obscured, ie beyond the scope of a simple BitBlt. (PrintWindow seems to be a cross-process "extension" of the WM_PRINT message).
But PrintWindow doesn't seem to work when I "point" it at any Java-based apps. That is, for a few java-based apps (including the Java Control Panel) running on XP, the return from PrintWindow includes the non-client area, but the client area is just blackness (not a render of what would be displayed) - the apps do flicker and seem to redraw on the screen instead. Note, I'm not looking for help in using PrintWindow() in a Java app - rather this is perhaps a problem with Java responding to windows painting messages.
I've tried JRE 1.5.0_07-b03 and 1.6.0_01.
Is this a bug in the Java implementation? I'm a bit surprised I can't find any reference to it. Is there a work around?
For a source-code (C++) example of PrintWindow in a small app see http://www.codeguru.com/cpp/g-m/gdi/capturingimages/article.php/c11231
I placed this description on a forum 2 weeks ago, no feedback has been obtained. I assume it is a bug.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Build and run the (source-code, VC++) sample linked to above.
Run the Java Control Panel
Refresh the window list in the example app, select the Java Control Panel
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Use example app to "preview" a different (non-Java) window, see that the preview is correct (well, for many apps it is, can't guarantee all!).
ACTUAL -
See that the "preview" is blank (black) where the contents of the Control Panel should appear, but that the non-client areas do appear. Note that the Control Panel appears to repaint on the screen (flicker is noticeable, at least on some machines).
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Not applicable, error is in Java machine's Windows and not related to any specific Java-language code.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
none, unfortunately.
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
This is a Windows-specific problem.
WinXP added the PrintWindow() API that allows one application to take an image copy of another app's window, even if the window is off-screen or obscured, ie beyond the scope of a simple BitBlt. (PrintWindow seems to be a cross-process "extension" of the WM_PRINT message).
But PrintWindow doesn't seem to work when I "point" it at any Java-based apps. That is, for a few java-based apps (including the Java Control Panel) running on XP, the return from PrintWindow includes the non-client area, but the client area is just blackness (not a render of what would be displayed) - the apps do flicker and seem to redraw on the screen instead. Note, I'm not looking for help in using PrintWindow() in a Java app - rather this is perhaps a problem with Java responding to windows painting messages.
I've tried JRE 1.5.0_07-b03 and 1.6.0_01.
Is this a bug in the Java implementation? I'm a bit surprised I can't find any reference to it. Is there a work around?
For a source-code (C++) example of PrintWindow in a small app see http://www.codeguru.com/cpp/g-m/gdi/capturingimages/article.php/c11231
I placed this description on a forum 2 weeks ago, no feedback has been obtained. I assume it is a bug.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Build and run the (source-code, VC++) sample linked to above.
Run the Java Control Panel
Refresh the window list in the example app, select the Java Control Panel
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Use example app to "preview" a different (non-Java) window, see that the preview is correct (well, for many apps it is, can't guarantee all!).
ACTUAL -
See that the "preview" is blank (black) where the contents of the Control Panel should appear, but that the non-client areas do appear. Note that the Control Panel appears to repaint on the screen (flicker is noticeable, at least on some machines).
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Not applicable, error is in Java machine's Windows and not related to any specific Java-language code.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
none, unfortunately.