summaryrefslogtreecommitdiff
path: root/java/awt/Component.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-11-29 22:43:35 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-11-29 22:43:35 +0000
commit3be294e0e9f07e379e1499b9868db9855eb8726f (patch)
treea1f67d3f1469ecc142b11c30b1e3c2e1a624794d /java/awt/Component.java
parentf40b961c6c82ebc9ae9863635e5fe19c0b07c116 (diff)
downloadclasspath-3be294e0e9f07e379e1499b9868db9855eb8726f.tar.gz
2006-11-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge of HEAD-->generics for 2006/11/12-2006/11/29.
Diffstat (limited to 'java/awt/Component.java')
-rw-r--r--java/awt/Component.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/java/awt/Component.java b/java/awt/Component.java
index 82c81c7a0..4b2c4496a 100644
--- a/java/awt/Component.java
+++ b/java/awt/Component.java
@@ -823,10 +823,7 @@ public abstract class Component
*/
public boolean isShowing()
{
- if (! visible || peer == null)
- return false;
-
- return parent == null ? false : parent.isShowing();
+ return visible && peer != null && (parent == null || parent.isShowing());
}
/**
@@ -3627,6 +3624,12 @@ public abstract class Component
else if (r2.contains(r1))
coalesced = newEvent;
}
+ else
+ {
+ // Replace the event and let the heavyweight figure out the expanding
+ // of the repaint area.
+ coalesced = newEvent;
+ }
break;
default:
coalesced = null;