JavaFX TextField validation for integer input and also allow either K or k(for Thousand) or M or m(for Million) in last
I want to add validation in javafx TextField such that user should only be able to insert integer values ([0-9] and Dot ). Also user should be able to insert either B or b(for Billion) and K or k (for Thousand) and M or m( for Million). Basically it should be an amountfield. Delete and Backspace should also work. for example : 10k should become 10,000.00 as soon as user hit k and K should not be displayed on amountfield (textfield) Similarly 10M or 10m should convert into 10,000,000.00 adsadi342fn3 or 31233123werwer or dsad342134k should not be allowed to enter in the textfield. I have used