My (hopefully) last patch before release. This fixes a painting issue
when using JDialogs. The problem was that the JComponent always searched
up the hierarchy, assuming that it has reached the containing window
when parent==null, which is not the case in Dialogs.
2005-11-02 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/JComponent.java
(findOverlapFreeParent): Don't search beyond the components
containing window (important when in a Dialog).
/Roman
Index: javax/swing/JComponent.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JComponent.java,v
retrieving revision 1.74
diff -u -r1.74 JComponent.java
--- javax/swing/JComponent.java 2 Nov 2005 09:25:13 -0000 1.74
+++ javax/swing/JComponent.java 2 Nov 2005 19:23:59 -0000
@@ -3182,7 +3182,7 @@
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)
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches