mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-13 03:45:19 +00:00
8212735: Compilation issue with javax.swing.InputVerifier example in javadoc section
Reviewed-by: serb
This commit is contained in:
parent
b29bab7522
commit
a445441580
@ -69,7 +69,7 @@ import java.util.*;
|
||||
* 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());
|
||||
* }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user