JTextField question ?

how to make a JTextField only have one character , what i mean by that is that i want ONLY ONE CHARACTER to be written inside the jtextfield, if you press on the keyboard more than one character it will only take the first character...and how to format it to accept characters, not digits
[297 byte] By [fouadka] at [2007-10-3 2:45:41]
# 1
Look at JFormattedTextfield or use a custom Document.
PhHeina at 2007-7-14 20:34:20 > top of Java-index,Desktop,Core GUI APIs...