-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
6u10
-
x86
-
windows_vista
FULL PRODUCT VERSION :
1.6.0_10-beta
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.0.6001]
(Vista SP1)
EXTRA RELEVANT SYSTEM CONFIGURATION :
NVidia Quadro NVS 140M graphics card
A DESCRIPTION OF THE PROBLEM :
Specifying -Dsun.java2d.opengl=true or True when running even a simple Swing application makes the application's frame appear without any contents. The decorations on the frame are visible but the interior (where the content pane and any controls should be) is completely transparent - you can see the desktop through it. I've tried this with the simplest possible "Hello world" application of my own as well as various downloaded swing applications. A simple JFrame with a label in it is enough to reproduce this problem.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a simple "Hello World" swing application and run it with -Dsun.java2d.opengl=true
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expected to see a small window with the text "Hello world" in it. We were planning to use Swing components in a full-screen, high performance OpenGL application.
ACTUAL -
I see a small window whose content is completely transparent - no text or background. This renders us completely dead-in-the-water for using Swing in a high performance OpenGL app.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error messages, but some possibly useful output. When I enable verbose output by using "True" (with a capital T) for the -Dsun.java2d.opengl option, the console says this:
OpenGL pipeline enabled for default config on screen 0
When I enable log output with the -Dsun.java2d.trace=log option, the console says this:
OpenGL pipeline enabled for default config on screen 0
OGLFillRect
OGLFillRect
OGLFillRect
OGLFillRect
OGLDrawGlyphs
sun.java2d.opengl.OGLSurfaceToSurfaceBlit::Blit("OpenGL Surface", AnyAlpha, "OpenGL Surface")
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JFrame;
import javax.swing.JLabel;
public class HelloWorldSwing {
public static void main(String[] args) {
JFrame frame = new JFrame("HelloWorldSwing");
final JLabel label = new JLabel("Hello World");
frame.getContentPane().add(label);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I have already tried the following options, none of which helped:
-Dsun.java2d.opengl.fbobject=false
-Dsun.java2d.noddraw=true
-Dsun.java2d.translaccel=false
1.6.0_10-beta
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.0.6001]
(Vista SP1)
EXTRA RELEVANT SYSTEM CONFIGURATION :
NVidia Quadro NVS 140M graphics card
A DESCRIPTION OF THE PROBLEM :
Specifying -Dsun.java2d.opengl=true or True when running even a simple Swing application makes the application's frame appear without any contents. The decorations on the frame are visible but the interior (where the content pane and any controls should be) is completely transparent - you can see the desktop through it. I've tried this with the simplest possible "Hello world" application of my own as well as various downloaded swing applications. A simple JFrame with a label in it is enough to reproduce this problem.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a simple "Hello World" swing application and run it with -Dsun.java2d.opengl=true
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expected to see a small window with the text "Hello world" in it. We were planning to use Swing components in a full-screen, high performance OpenGL application.
ACTUAL -
I see a small window whose content is completely transparent - no text or background. This renders us completely dead-in-the-water for using Swing in a high performance OpenGL app.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error messages, but some possibly useful output. When I enable verbose output by using "True" (with a capital T) for the -Dsun.java2d.opengl option, the console says this:
OpenGL pipeline enabled for default config on screen 0
When I enable log output with the -Dsun.java2d.trace=log option, the console says this:
OpenGL pipeline enabled for default config on screen 0
OGLFillRect
OGLFillRect
OGLFillRect
OGLFillRect
OGLDrawGlyphs
sun.java2d.opengl.OGLSurfaceToSurfaceBlit::Blit("OpenGL Surface", AnyAlpha, "OpenGL Surface")
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JFrame;
import javax.swing.JLabel;
public class HelloWorldSwing {
public static void main(String[] args) {
JFrame frame = new JFrame("HelloWorldSwing");
final JLabel label = new JLabel("Hello World");
frame.getContentPane().add(label);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I have already tried the following options, none of which helped:
-Dsun.java2d.opengl.fbobject=false
-Dsun.java2d.noddraw=true
-Dsun.java2d.translaccel=false