summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2005-11-02 19:26:33 +0000
committerRoman Kennke <roman@kennke.org>2005-11-02 19:26:33 +0000
commit169817ff36495877f53b1056f2248c26d40786b6 (patch)
tree51c01113702a40acbe9b7801e7d8c1755f045806
parent5ec8a1b421e6959aab9f3cfc60570cb620609d2c (diff)
downloadclasspath-169817ff36495877f53b1056f2248c26d40786b6.tar.gz
2005-11-02 Roman Kennke <kennke@aicas.com>
* javax/swing/JComponent.java (findOverlapFreeParent): Don't search beyond the components containing window (important when in a Dialog).
-rw-r--r--ChangeLog6
-rw-r--r--javax/swing/JComponent.java2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a99dd52f4..ba79385ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-02 Roman Kennke <kennke@aicas.com>
+
+ * javax/swing/JComponent.java
+ (findOverlapFreeParent): Don't search beyond the components
+ containing window (important when in a Dialog).
+
2005-11-02 Christian Thalinger <twisti@complang.tuwien.ac.at>
* AUTHORS: Added myself to the cool gang.
diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java
index cbacdfa35..b47a1c892 100644
--- a/javax/swing/JComponent.java
+++ b/javax/swing/JComponent.java
@@ -3182,7 +3182,7 @@ public abstract class JComponent extends Container implements Serializable
Rectangle currentClip = clip;
Component found = this;
Container parent = this;
- while (parent != null)
+ while (parent != null && !(parent instanceof Window))
{
Container newParent = parent.getParent();
if (newParent == null)