summaryrefslogtreecommitdiff
path: root/javax/swing/JTextField.java
diff options
context:
space:
mode:
authorGuilhem Lavaux <guilhem@kaffe.org>2006-03-25 13:03:42 +0000
committerGuilhem Lavaux <guilhem@kaffe.org>2006-03-25 13:03:42 +0000
commit0c7e0a4e2b74bb6fdbe066f398a67e2f2868b33b (patch)
tree02c07fe1810f3a93c25c09bd8dd734015b411b24 /javax/swing/JTextField.java
parent2b6681d4ec574e10f753dd6847b6bfb7895793b7 (diff)
downloadclasspath-0c7e0a4e2b74bb6fdbe066f398a67e2f2868b33b.tar.gz
2006-03-19 Guilhem Lavaux <guilhem@kaffe.org>
* Synchronized to GNU Classpath 2006-03-18.
Diffstat (limited to 'javax/swing/JTextField.java')
-rw-r--r--javax/swing/JTextField.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/javax/swing/JTextField.java b/javax/swing/JTextField.java
index 0d43b290b..01c5c06a3 100644
--- a/javax/swing/JTextField.java
+++ b/javax/swing/JTextField.java
@@ -530,4 +530,18 @@ public class JTextField extends JTextComponent
// javax.swing.text.FieldView.
return horizontalVisibility;
}
+
+ /**
+ * Returns <code>true</code>, unless this is embedded in a
+ * <code>JViewport</code> in which case the viewport takes responsibility of
+ * validating.
+ *
+ * @return <code>true</code>, unless this is embedded in a
+ * <code>JViewport</code> in which case the viewport takes
+ * responsibility of validating
+ */
+ public boolean isValidateRoot()
+ {
+ return ! (getParent() instanceof JViewport);
+ }
}