textFields

how could i set a maximum size for a text field?the mouse pointer must pass to the next component when someone entered the maximum number of characters into that text field.thanks
[207 byte] By [98028140] at [2007-9-26 1:22:16]
# 1

You could try setting up your program so that every time someone typed into your text field, it would fire an event. Everytime you received said event, you could increment a variable by 1. When the variabe reached its maximum, then you could have the next component request focus, and even set the text field to read only if you'd like.

sbsquarepants at 2007-6-29 0:59:05 > top of Java-index,Desktop,Core GUI APIs...