diff options
author | Roman Kennke <roman@kennke.org> | 2005-11-02 19:26:33 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-11-02 19:26:33 +0000 |
commit | 169817ff36495877f53b1056f2248c26d40786b6 (patch) | |
tree | 51c01113702a40acbe9b7801e7d8c1755f045806 | |
parent | 5ec8a1b421e6959aab9f3cfc60570cb620609d2c (diff) | |
download | classpath-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | javax/swing/JComponent.java | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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) |