https://github.com/dlsc-software-consulting-gmbh/phonenumberfx
https://github.com/dlsc-software-consulting-gmbh/phonenumberfx
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dlsc-software-consulting-gmbh/phonenumberfx
- Owner: dlsc-software-consulting-gmbh
- License: apache-2.0
- Created: 2023-11-09T16:10:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-03T18:34:48.000Z (11 months ago)
- Last Synced: 2024-06-03T21:33:56.809Z (11 months ago)
- Language: Java
- Size: 952 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PhoneNumberFX
[](https://search.maven.org/search?q=g:com.dlsc.phonenumberfx%20AND%20a:phonenumberfx)
This repository contains a text field control that is being used for entering valid phone numbers
for any country in the world. The library has a dependency to [Google's _libphonenumber_ library](https://github.com/google/libphonenumber/),
which is rather big, hence we decided to distribute this control via its own project on GitHub
(as opposed to adding it to the GemsFX project). The text field can be configured to format
the number on a "value commit" event (focus lost, enter pressed) or constantly while the user is
typing.A great tutorial for this control [can be found here](https://coderscratchpad.com/javafx-phone-number-input-field/).
The second control in this project is a specialized label that properly formats phone numbers set on
it via its `valueProperty()`. The label supports a "home country" so that phone numbers of the home country
will be shown in their national format, while phone numbers from other countries will be shown including
their country code prefix.The demo website of Google's library [can be found here](https://libphonenumber.appspot.com).