I have a jFormattedTextFiled for field "Name".
I have to restrict the field to enter only 25characters.
if entered more some message has to be displayed...
for message I can use JOptionpane..

How can I do it?