I downloaded and installed the NetBeans Simple Validation plug-in, but I don’t know how to use it, because I cannot find where it is (in the toolbar).
Can someone kindly help me by telling how I can find it and what are the steps for applying validation in my form fields.
I also saw that there is a Validation API JAR file, and I downloaded it and included it in my project. He provided 3 controls (or whatever I said); ValidationPanel, ValidationUtils, and Issues. I saw an example on a website and followed it. I dragged the "ValidationPanel" and wrote the code as shown in the following code
final ValidationGroup group = validationPanel1.getValidationGroup();
group.add(txtUserName, Validators.REQUIRE_NON_EMPTY_STRING,
Validators.NO_WHITESPACE,
Validators.REQUIRE_VALID_INTEGER);
But it seems that the JAR file contains incomplete files, or there may be another problem, because it gives an error: cannot find the character: the "Validators" variable
I am sorry, I think these are 2 questions, but kindly help me how to solve this.
thanks in advance
source
share