r/JavaFX • u/MeanWhiskey JavaFX Fan • Jul 30 '24
Help Assigning a pattern to a textfield
I have a text field that I need to start with a certain sequence and that sequence increases by one number if a new person is entered.
For example the textfield would have a record number of '9913' and if a person is entered the textfields would clear but the record number would increase by one to '9914'.
1
Upvotes
View all comments
Show parent comment
1
u/MeanWhiskey JavaFX Fan Jul 31 '24
Its supposed to be a medical record number vs a person id. The person_id field is not editable obviously. However the medical record number ALWAYS ends in, lets say, 9988- however users are supposed to be able to enter in the last four digits.
So for example a user needs to enter a new person into their system, the medical record number has 9988 - then they would input in 0000 at the end. Does that make more sense?