PATCH: enable paint events for heavyweight java.awt.Container which contains a lightweight java.awt.Component
Scott Gilbertson
scottg@mantatest.com
Mon Feb 17 20:03:00 GMT 2003
This patch enables paint events for any heavyweight Container to which a
lightweight Component is added. When you do a repaint on a Component, it
finds the nearest heavyweight parent and sends it a paint event. These
events were being discarded, so no lightweight components showed up on the
screen.
Patch is attached.
Index: libjava/ChangeLog
from Scott Gilbertson <scottg@mantatest.com>
* libjava/java/awt/Container.java (addImpl): enable paint events if adding
a lightweight to a heavyweight
(addNotify): ensure that peer is created before
addNotifyContainerChildren
(addNotifyContainerChildren): enable paint events if a heavyweight
container contains a lightweight
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20030217_ContainerPaint.patch
Type: application/octet-stream
Size: 1426 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030217/f7a21b43/attachment.obj>
More information about the Java-patches
mailing list