The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


setting an upper bound on the amount of text that can be entered into JTextArea

Posted by Gargi on February 08, 2002 at 2:02 AM

Is there anyway of setting the maximum number of characters that can be entered in JTextArea? When the number of characters in the JTextArea reaches this limit it doesn't let the user do any insertions, but it allows deletion. Whenever the number of characters falls below the maximum limit because of deletion, it will again start allowing insertions.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us