Hi, Is there a way to limit the number of characters that a user can enter into a JTextField. For example... If 3 JtextField exist in a GUI, one for the day, one for the month and one for the year (just for example), the day field should never have more than 2 characters entered. I guess what I'm trying to ask is, is there a way to stop user input into a text field once the max number of characters are entered? Thanks M.S
posted 13 years ago
Take a look at the example in the tutorial (validated textfield). You can modify it a little to get the result you want.