changeset 52520:39720384f74a

8212735: Compilation issue with javax.swing.InputVerifier example in javadoc section Reviewed-by: serb
author psadhukhan
date Thu, 25 Oct 2018 13:09:58 +0530
parents e202d04f4973
children 7335ac58f32b
files src/java.desktop/share/classes/javax/swing/InputVerifier.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/javax/swing/InputVerifier.java	Thu Oct 25 13:07:42 2018 +0530
+++ b/src/java.desktop/share/classes/javax/swing/InputVerifier.java	Thu Oct 25 13:09:58 2018 +0530
@@ -69,7 +69,7 @@
  *         getContentPane().add(field1, BorderLayout.NORTH);
  *         getContentPane().add(field2, BorderLayout.SOUTH);
  *
- *         field.setInputVerifier(new InputVerifier() {
+ *         field1.setInputVerifier(new InputVerifier() {
  *             public boolean verify(JComponent input) {
  *                return "pass".equals(((JTextField) input).getText());
  *             }