8212735: Compilation issue with javax.swing.InputVerifier example in javadoc section
authorpsadhukhan
Thu, 25 Oct 2018 13:09:58 +0530
changeset 52520 39720384f74a
parent 52519 e202d04f4973
child 52521 7335ac58f32b
8212735: Compilation issue with javax.swing.InputVerifier example in javadoc section Reviewed-by: serb
src/java.desktop/share/classes/javax/swing/InputVerifier.java
--- 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());
  *             }