Ignore JTextField's spurious claims to be a validate root.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1793 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: FrameRepaintManager.java,v 1.11 2002/08/20 19:01:08 mdb Exp $
|
// $Id: FrameRepaintManager.java,v 1.12 2002/10/09 02:35:20 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -17,6 +17,7 @@ import javax.swing.CellRendererPane;
|
|||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JComponent;
|
import javax.swing.JComponent;
|
||||||
import javax.swing.JEditorPane;
|
import javax.swing.JEditorPane;
|
||||||
|
import javax.swing.JTextField;
|
||||||
import javax.swing.RepaintManager;
|
import javax.swing.RepaintManager;
|
||||||
import javax.swing.SwingUtilities;
|
import javax.swing.SwingUtilities;
|
||||||
|
|
||||||
@@ -65,8 +66,13 @@ public class FrameRepaintManager extends RepaintManager
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we find our validate root, we can stop looking
|
// if we find our validate root, we can stop looking; NOTE:
|
||||||
if (((JComponent)c).isValidateRoot()) {
|
// JTextField incorrectly claims to be a validate root thereby
|
||||||
|
// fucking up the program something serious; we jovially
|
||||||
|
// ignore it's claims here and restore order to the universe;
|
||||||
|
// see bug #403550 for more fallout from Sun's fuckup
|
||||||
|
if (!(c instanceof JTextField) &&
|
||||||
|
((JComponent)c).isValidateRoot()) {
|
||||||
vroot = c;
|
vroot = c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user