[cp-patches] FYI: SwingComponentPeer fixes

Roman Kennke roman at kennke.org
Tue Jun 27 15:12:35 UTC 2006


A couple of fixes for SwingComponentPeer. These are needed for my
X/Escher peers to work correctly.

2006-06-27  Roman Kennke  <kennke at aicas.com>

        * gnu/java/awt/peer/swing/SwingComponentPeer.java
        (createImage): Delegate this to the parent.
        (handleEvent): Only handle PAINT/UPDATE events when the
        component is actually showing.
        (hide): Repaint the parent after hiding a component.
        (prepareImage): Have only one return point.
        (setVisible): Delegate to show() and hide().
        (createVolatileImage): Added null check to avoid NPE.

/Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060627/0f279768/attachment.pgp


More information about the Classpath-patches mailing list