![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
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.
Message:
You can set the document of the JTextArea, and then override the insertString method. Each time you insert something to the text area, the insertString method is called to do the insertion. So, you can do a test before in this method. I did not test the following codes, but that is the idea. Also, if you do a copy & paste, if the result is > limit, it just returns. If you want to paste partial string up to the limit, then you need to do some substring copy. try this
Replies: |
Sponsored Links
|