<Swing Dev> How to resolve image tearing

Anthony Petrov anthony.petrov at oracle.com
Tue Apr 12 13:25:18 UTC 2011


Hi Lin,

On 4/12/2011 3:47 AM, ximalaya wrote:
> From an article, it is said we can not overlay non-opaque LW
> component on HW compoent. Does latest JDK still have this
> limitation?

Yes, this is a known limitation, and currently we don't have plans to 
fix this due to technical difficulties and absence of support for this 
functionality from the native systems. Sorry about that.

> From the article as in your email, I find bug 6852592 is not closed.

Although it isn't marked as 'closed', the fix has been delivered to JDK7 
b77.

> Associated with our above observation, my question is,**does latest
> JDK fully support mixing of heavy and light components?

The answer to this is - yes. But there's known limitations (as with 
non-opaque lw components) which are outlined in the specification (e.g. 
see the spec for the Component class) and/or in the article that I've 
mentioned.

--
best regards,
Anthony

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



More information about the swing-dev mailing list