Hello All,
When I am learning JOGL, I find something strange with the Java2D/JOGL interoperability.
I am not sure if I did anything wrong, or if there is a bug in the Java2D/JOGL Interoperability
implementation? Below is a description of the problem:
When I run my program with /usr/java/jdk1.6.0/bin/java TestJogl, I got result as shown in the first image
(testjogl1.jpg).
When I run the program with /usr/java/jdk1.6.0/bin/java -Dsun.java2d.opengl=true TestJogl, I got result
in the second image (testjogl2.jpg).
If I increase the number of rows of the table, the sphere will go down more in the case of un.java2d.opengl
enabled. It seems to me that the GLPanel does not respect the layout and insists on using the lower space.
I also attach my program. Please help me to solve this problem. Thank you very much.
Guo