<Swing Dev> How to resolve image tearing

Anthony Petrov anthony.petrov at oracle.com
Mon Apr 11 10:54:39 UTC 2011


Hi Lin,

This is mostly a Java2D issue. So I suggest to post your question 
regarding the vertical retrace synchronization to the 
2d-dev at openjdk.java.net instead.

On 4/11/2011 12:15 AM, ximalaya wrote:
> We've tried JOGL(java over openGL, support vsync, GLCanvas is used), it
> can fix image tearing issue. Howerver, there is issues to mix
> lightweight(text as overlay on the image) and heavyweight(GLCanvas)
> components. Latest openJDK ! 6/7 was used in our test.

What problems do you experience with mixing HW and LW components? 
Starting from 6u12 Java supports HW/LW mixing. Please find more 
information at:

http://java.sun.com/developer/technicalArticles/GUI/mixing_components/index.html

If you have any specific issues, please provide more details.

--
best regards,
Anthony



More information about the swing-dev mailing list