• Post Reply Bookmark Topic Watch Topic
  • New Topic

Number of chars of a JTextarea  RSS feed

 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
How can i have the number of chars of a Jtextarea, plese ?
Does someone know it ?
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use getText() which returns a String then use the appropriate String method.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!