-
text field limit
Hello,
I am trying to make a JTextField and i want to limit it to 6 characters only, is it possible, i read the doc of the JTextField class but didnt find anything..., if there like a method to it, or should i implement one myself, or what can i do to limit it?
Regards,
-
-
Thanks eRaaaa for the link, and it seems to be what i want, but it says this applys for the text pane is it the same as text field? is it okay for me to use it in text field?
-
Yes. The JTextField document class is by default the PlainDocument which extends the AbstractDocument!
-
ahaa, i see
thnx very much it helped me