https://github.com/tanshaydar/java-swing-form-validation
Java Swing Form Validation for JTextField and JTextArea.
https://github.com/tanshaydar/java-swing-form-validation
form-validation java swing swing-gui
Last synced: over 1 year ago
JSON representation
Java Swing Form Validation for JTextField and JTextArea.
- Host: GitHub
- URL: https://github.com/tanshaydar/java-swing-form-validation
- Owner: Tanshaydar
- License: mit
- Created: 2017-05-05T14:36:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-19T13:29:21.000Z (over 1 year ago)
- Last Synced: 2025-01-22T00:15:26.830Z (over 1 year ago)
- Topics: form-validation, java, swing, swing-gui
- Language: Java
- Homepage: https://tanshaydar.com
- Size: 258 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This little piece of code lets you to add validation to your Java Swing application forms.
You can set verification to your **JTextField**s and **JTextArea**s with [InputVerifier](https://docs.oracle.com/javase/7/docs/api/javax/swing/InputVerifier.html) method, which is a native Java method.

Types of verifications this little piece of code supports are:
* Integer only w/ min and max values.
* Double only w/ min and max values.
* Max text length check.
* Not null check.
It lets you to disable your Save and/or Update buttons on the fly if any wrong input is given, or user skipped a not nullable area.