JTextArea maximum character

Hi,

Can anyone advice how do I set the maximum character within the
javax.swing.JTextArea.This been my input field I basically
want to restrict from entering character beyond 100.

I tried JTextArea (5,20). But I could not achieve the objective.
Is there any explicit way of restricting the character limit.

Please provide an example.

Thanks
bangviz
LVL 1
bangvizAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
0
 
CEHJCommented:
:-)
0
All Courses

From novice to tech pro — start learning today.