From ec71632be9a062263b8cf078dceae91b2e3f0c55 Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Fri, 7 Jul 2006 14:08:44 +0000 Subject: 2006-07-07 Roman Kennke * java/awt/Component.java (isValid): Return false when component has no peer, don't query the showing state. --- ChangeLog | 6 ++++++ java/awt/Component.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a075d2be7..e1c9aef0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-07-07 Roman Kennke + + * java/awt/Component.java + (isValid): Return false when component has no peer, + don't query the showing state. + 2006-07-07 Audrius Meskauskas * javax/swing/text/FlowView.java (FlowStrategy.layoutRow): diff --git a/java/awt/Component.java b/java/awt/Component.java index 96980a7d5..5f4a27c6a 100644 --- a/java/awt/Component.java +++ b/java/awt/Component.java @@ -748,7 +748,7 @@ public abstract class Component { // Tests show that components are invalid as long as they are not showing, even after validate() // has been called on them. - return isShowing() && valid; + return peer != null && valid; } /** -- cgit v1.2.1