Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (newValue != null) {
- if (!newValue.matches("^\\(?([0-9]{3})\\)?[-.\\s]?([0-9]{3})[-.\\s]?([0-9]{4})$")) {
- ContactGuiCodeBehind.this.phoneNumberTextField.setText(oldValue);
- ContactGuiCodeBehind.this.idErrorLabel.setVisible(true);
- } else {
- ContactGuiCodeBehind.this.phoneNumberTextField.setText(newValue);
- ContactGuiCodeBehind.this.idErrorLabel.setVisible(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement