<Swing Dev> How to resolve image tearing
ims3g at 126.com
Mon Apr 11 17:06:50 PDT 2011
Thanks a lot for your reply! I'll post to 2d-dev at openjdk.java.net later.
We have HW and LW componets as following,
1) A HW component GLCanvas(JOGL class, subclass of Canvas), which contains an image.
2) LW component JComponent, which is non-opaque and contains some texts.
We expect the texts can be shown over the image, while we could only see either the image or texts: With openJDK 1.6.0_18, we could see the image, while the text is invisible. With latest openJDK6/7, we only see the texts, the image is invisible(only a black area shown).
From an article, it is said we can not overlay non-opaque LW component on HW compoent. Does latest JDK still have this limitation?
From the article as in your email, I find bug 6852592 is not closed. Associated with our above observation, my question is, does latest JDK fully support mixing of heavy and light components?
Thanks and Best Regards,
At 2011-04-11 18:54:39£¬"Anthony Petrov" <anthony.petrov at oracle.com> wrote: >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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swing-dev