2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/awt/Component.java (show): Set visible to true before
showing the peer.
From-SVN: r76325
+2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * java/awt/Component.java (show): Set visible to true before
+ showing the peer.
+
2004-01-21 Kim Ho <kho@redhat.com>
* gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
*/
public void show()
{
+ // We must set visible before showing the peer. Otherwise the
+ // peer could post paint events before visible is true, in which
+ // case lightweight components are not initially painted --
+ // Container.paint first calls isShowing () before painting itself
+ // and its children.
+ this.visible = true;
if (peer != null)
peer.setVisible(true);
- this.visible = true;
}
/**