All Projects → gbfragoso → MaskedTextField

gbfragoso / MaskedTextField

Licence: MIT License
MaskedTextField is an component similar to JFormmatedText field and can be used in same way.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MaskedTextField

JasperViewerFX
The JasperViewerFX is a free JavaFX library which aims to avoid use of JasperReport's swing viewer
Stars: ✭ 27 (+28.57%)
Mutual labels:  javafx, javafx-library, javafx-8
lib-preferences
Lib-Preferences is a library for easy storing simple data to a Preferences.properties file in a Java(FX) & Maven desktop application.
Stars: ✭ 12 (-42.86%)
Mutual labels:  javafx, javafx-library, javafx-8
GNCarousel
Carousel based on web design
Stars: ✭ 19 (-9.52%)
Mutual labels:  javafx, javafx-8
advanced-bindings
Collection of Binding helpers for JavaFX(8)
Stars: ✭ 63 (+200%)
Mutual labels:  javafx, javafx-library
DashboardFx
JavaFx Dashboard
Stars: ✭ 272 (+1195.24%)
Mutual labels:  javafx, javafx-library
Awesomejavafx
A curated list of awesome JavaFX libraries, books, frameworks, etc...
Stars: ✭ 2,488 (+11747.62%)
Mutual labels:  javafx, javafx-library
JFXGoogleDrive
A JavaFX Google Drive Client (For Demonstration Purposes Only).
Stars: ✭ 29 (+38.1%)
Mutual labels:  javafx, javafx-8
mano-simulator
🖥️ An assembler and hardware simulator for the Mano Basic Computer, a 16 bit computer.
Stars: ✭ 20 (-4.76%)
Mutual labels:  javafx, javafx-8
animated
🌊 Implicit animations for JavaFX.
Stars: ✭ 79 (+276.19%)
Mutual labels:  javafx, javafx-library
medusa
A JavaFX library for Gauges
Stars: ✭ 605 (+2780.95%)
Mutual labels:  javafx, javafx-library
Bank-Account-Simulation
A Bank Account Simulation with JavaFX and SQLite back-end. Material UX|UI.
Stars: ✭ 19 (-9.52%)
Mutual labels:  javafx, javafx-library
FluxFX
Flux architecture with JavaFX
Stars: ✭ 24 (+14.29%)
Mutual labels:  javafx, javafx-library
Grid
A grid component for javafx
Stars: ✭ 23 (+9.52%)
Mutual labels:  javafx, javafx-library
kubed
No description or website provided.
Stars: ✭ 68 (+223.81%)
Mutual labels:  javafx
JavaFXWorkshop
Code and a handout for a JavaFX workshop
Stars: ✭ 24 (+14.29%)
Mutual labels:  javafx
TheScopeReport
This is a Java program that calls the Jamf Pro API to collect scoping details.
Stars: ✭ 13 (-38.1%)
Mutual labels:  javafx
SRScratchView
A mask imageView class which can be used a scratchView.
Stars: ✭ 52 (+147.62%)
Mutual labels:  mask
CurrencyConverter
Currency Converter App using fixer API at http://api.fixer.io
Stars: ✭ 22 (+4.76%)
Mutual labels:  javafx-8
GNButton
JavaFx Custom Button animated
Stars: ✭ 17 (-19.05%)
Mutual labels:  javafx
FxEditor
JavaFX rich text editor able to handle billions of lines (WORK IN PROGRESS)
Stars: ✭ 21 (+0%)
Mutual labels:  javafx

MaskedTextField

This component is very similar to JFormmatedText field and can be used in same way. Including the functionalites of copy|paste content, dinamically change placeholder and mask.

The following table shows the characters that you can use in the formatting mask:

Character Description
# Any valid number (Character.isDigit)
' Escape character, used to escape any of the special formatting characters.
U Any character (Character.isLetter). All lowercase letters are mapped to uppercase
L Any character (Character.isLetter). All uppercase letters are mapped to lowercase
A Any character or number (Character.isLetter or Character.isDigit)
? Any character (Character.isLetter)
* Anything
H Any hex character (0-9, a-f or A-F)

Demonstration

Working mask

Using in JavaFX code (without FXML)

// Created mask for phone with default placeholder "_"
MaskedTextField text = new MaskedTextField("(###)#####-####"); // Only Number

// Change placeholder to empty space
text.setPlaceHolder(' ');

// Change mask
text.setMask("((####))");

Using in FXML

<?import packagepath.MaskedTextField?>

<MaskedTextField mask="(###)#####-####" plainText="5555"/>

The available tags to use in FXML are: mask, placeholder and plainText;

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].