{"id":37023617,"url":"https://github.com/rhwood/jinputvalidator","last_synced_at":"2026-01-14T02:50:32.375Z","repository":{"id":35617197,"uuid":"191156809","full_name":"rhwood/jinputvalidator","owner":"rhwood","description":"Java Swing InputVerifier that adds an icon and tooltip to the component for invalid states.","archived":false,"fork":false,"pushed_at":"2026-01-05T20:01:12.000Z","size":1536,"stargazers_count":29,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-06T18:05:17.141Z","etag":null,"topics":["java","swing","swing-component"],"latest_commit_sha":null,"homepage":"https://rhwood.github.io/jinputvalidator/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhwood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-10T11:38:49.000Z","updated_at":"2026-01-01T22:36:20.000Z","dependencies_parsed_at":"2023-02-17T05:00:36.047Z","dependency_job_id":"4fb28a3f-9aa7-444f-bd29-285aed1dca35","html_url":"https://github.com/rhwood/jinputvalidator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rhwood/jinputvalidator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhwood%2Fjinputvalidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhwood%2Fjinputvalidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhwood%2Fjinputvalidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhwood%2Fjinputvalidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhwood","download_url":"https://codeload.github.com/rhwood/jinputvalidator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhwood%2Fjinputvalidator/sbom","scorecard":{"id":774517,"data":{"date":"2025-08-19T20:30:38Z","repo":{"name":"github.com/rhwood/jinputvalidator","commit":"7c6e9cc910d987567c67b3e81f24bfe08a633061"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":8.3,"checks":[{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Maintained","score":10,"reason":"22 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:31","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:32","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/build.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:24","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18","Info: topLevel 'contents' permission set to 'read': .github/workflows/site.yml:10","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  19 out of  19 GitHub-owned GitHubAction dependencies pinned","Info:   8 out of   8 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":4,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: branch 'main' does not require approvers","Info: codeowner review is required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":8,"reason":"1 out of the last 1 releases have a total of 1 signed artifacts.","details":["Info: signed release artifact: jinputvalidator-0.9.0-javadoc.jar.asc: https://github.com/rhwood/jinputvalidator/releases/tag/0.9.0","Warn: release artifact 0.9.0 does not have provenance: https://api.github.com/repos/rhwood/jinputvalidator/releases/65452957"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Contributors","score":3,"reason":"project has 1 contributing companies or organizations -- score normalized to 3","details":["Info: found contributions from: everfox"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"30 out of 30 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-08-23T03:10:56.612Z","repository_id":35617197,"created_at":"2025-08-23T03:10:56.612Z","updated_at":"2025-08-23T03:10:56.612Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","swing","swing-component"],"created_at":"2026-01-14T02:50:31.716Z","updated_at":"2026-01-14T02:50:32.360Z","avatar_url":"https://github.com/rhwood.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"JInputValidator\n===============\n\nAn [InputVerifier](https://docs.oracle.com/javase/8/docs/api/index.html?javax/swing/InputVerifier.html) for Java Swing that shows validation state to the right of the validating component.\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.alexandriasoftware.swing/jinputvalidator/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.alexandriasoftware.swing/jinputvalidator)\n[![Javadocs](https://www.javadoc.io/badge/com.alexandriasoftware.swing/jinputvalidator.svg)](https://www.javadoc.io/doc/com.alexandriasoftware.swing/jinputvalidator)\n[![Build](https://github.com/rhwood/jinputvalidator/actions/workflows/build.yml/badge.svg)](https://github.com/rhwood/jinputvalidator/actions/workflows/build.yml)\n[![CodeQL](https://github.com/rhwood/jinputvalidator/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/rhwood/jinputvalidator/actions/workflows/codeql-analysis.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=rhwood_jinputvalidator\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=rhwood_jinputvalidator)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=rhwood_jinputvalidator\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=rhwood_jinputvalidator)\n[![Coverage](https://codecov.io/gh/rhwood/jinputvalidator/branch/main/graph/badge.svg?token=pKCkI8SxSg)](https://codecov.io/gh/rhwood/jinputvalidator)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/rhwood/jinputvalidator/badge)](https://securityscorecards.dev/viewer/?uri=github.com/rhwood/jinputvalidator)\n\nJInputValidator extends the verify idiom to use six states, each with its own graphical representation and tool tip text:\n\n- __DANGER__, a failure state, which defaults to a red letter _X_ in a circle.\n- __INFORMATION__, a non-failure state, which defaults to a light blue letter _i_ in a circle.\n- __NONE__, the default state, which does not show any icon.\n- __SUCCESS__, a non-failure state, which defaults to a green check mark in a circle.\n- __UNKNOWN__, a non-failure state, which defaults to a light blue question mark in a circle.\n- __WARNING__, a failure state, which defaults to a yellow-orange exclamtion mark in a triangle.\n\nWhen a status is set to a \"failure state\" `InputVerifier.verify(Component c)` returns `false`, while for \"non-failure states\" that method returns `true`.\n\n## Screenshots\n\n![Nimbus L\u0026F Screenshot](https://raw.github.com/rhwood/jinputvalidator/master/wiki/images/all-nimbus.png)\n\n## Using the Control\n\nSimple example that shows a Danger indicator if an input is less than 8 characters:\n\n```java\n// create a control\nJTextField myJTextField = new JTextField();\n// add a new JInputValidator as the InputVerifier\nmyJTextField.setInputVerifier(new JInputValidator(myJTextField, true) {\n            @Override\n            protected Validation getValidation(JComponent input, JInputValidatorPreferences preferences) {\n                if (myJTextField.getText().length \u003c 8) {\n                    return new Validation(Validation.Type.DANGER, \"Too short\", preferences);\n                }\n                return new Validation(Validation.Type.NONE, \"\", preferences);\n            }\n        });\n```\n\nYou can also use existing verifiers with the `JInputValidator` subclass `VerifyingValidator`:\n\n```java\nmyJTextField.setInputVerifier(new InputVerifer() {\n    @Override\n    public boolean verify(JComponent input) {\n        return (myJTextField.getText().length \u003e= 8);\n    }\n})\nmyJTextField.setInputVerifier(new VerifyingValidator(myJTextField,\n        myJTextField.getInputVerifier(),\n        new Validation(Validation.Type.DANGER, \"Too short\", preferences)));\n```\n\n## Customizing\n\nBy default, `JInputValidator` uses [PatternFly 4 colors](https://www.patternfly.org/v4/design-guidelines/styles/colors) and [Font Awesome icons](https://fontawesome.com/icons?d=gallery\u0026s=solid\u0026m=free) for the various states.\n\nThese values can be overridden by providing a [`Preferences`](https://docs.oracle.com/javase/8/docs/api/index.html?java/util/prefs/Preferences.html) object to [`JInputValidatorPreferences.getPreferences(Preferences preferences)`](https://static.javadoc.io/com.alexandriasoftware.swing/jinputvalidator/0.1.0/com/alexandriasoftware/swing/JInputValidatorPreferences.html#getPreferences-java.util.prefs.Preferences-) containing the following keys:\n\n- __font__ The path of the font to use for the visual verification. This must be a path that is loadable as a resource.\n- __danger.color__ The color to render the danger indicator in.\n- __danger.icon__ The Unicode characters for the danger indicator.\n- __information.color__ The color to render the information indicator in.\n- __information.icon__ The Unicode characters for the information indicator.\n- __success.color__ The color to render the success indicator in.\n- __sucess.icon__ The Unicode characters for the success indicator.\n- __unknown.color__ The color to render the unknown indicator in.\n- __unknown.icon__ The Unicode characters for the unknown indicator.\n- __warning.color__ The color to render the warning indicator in.\n- __warning.icon__ The Unicode characters for the warning indicator.\n\nOnce you have the `JInputValidatorPreferences` object, it can be passed to the constructor of a `JInputValidator`.\n\nIf your application already uses `Preferences` for other purposes, you can set the above keys in the package `com.github.rhwood.jinputvalidator` to override the defaults as long as your application reads its preferences before creating the first JInputValidator object.\n\n## Supported Java versions\n\nJSplitButton is supported on Java LTS versions 17, 21, and 25. Non-LTS versions of Java are not supported and will receive best-effort support.\n\nSupport for Java versions 8 and 11 is depricated, and CI testing will not be performed on these versions, but source code compatibility will be retained through a minimum of November 2026 for Java 8 and November 2027 for Java 11.\n\n## License\n\nJInputValidator is released under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhwood%2Fjinputvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhwood%2Fjinputvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhwood%2Fjinputvalidator/lists"}