Input Verifier - pola wymagane poprawione
This commit is contained in:
parent
100efa20f7
commit
264b557d48
@ -29,6 +29,11 @@ public class Validation extends InputVerifier {
|
|||||||
public Validation() {
|
public Validation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean verify(JComponent input) {
|
||||||
|
return checkField(input);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean checkField(JComponent input) {
|
public boolean checkField(JComponent input) {
|
||||||
JTextField tf = (JTextField) input;
|
JTextField tf = (JTextField) input;
|
||||||
if (required) {
|
if (required) {
|
||||||
@ -70,9 +75,4 @@ public class Validation extends InputVerifier {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean verify(JComponent input) {
|
|
||||||
return checkField(input);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user