The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

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:

AbstractDocument.Content

Posted by John Mac on January 21, 2002 at 6:33 PM

The implemented AbstractDocument.Content used to store the characters is a character array. When the Java Virtual Machine dies it is because of something else. Although, 24 MB is a really large text file. Are you writing a hex editor? If so, then maybe you should write your own document.

> JTextArea's PlainDocument seems to be the limitation in putting very large amounts of text into a JTextArea (over 9m characters, for instance). I believe the approach is to replace the AbstractDocument.Content with something that is very simple. I would like a bit of help in getting started on this. Basically, I need read-only so no inserts, deletes, etc -- a String model or byte[] should be sufficient.






Replies:

Sponsored Links



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