![]() |
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:
Even if it didn't crash, how would anyone make use of 24MB of text in a text area? It would be more effective to create your own VirtualJTextArea object, that works like a virtual listbox in Windows. Rather than actually stick all the data in the conrol, you use the control (JTextArea) as a moving "window" into your huge chunk of data. As that "window" is moved by the user, you display different parts of your data in it. For such a large piece of data, you might also want to provide some navigation tools with better conrol than JScrollPane. Additionally, using this scheme, you never have to load the whole thing into memory at once; you can read only the part that the use is looking at (plus a bit of look-ahead cache, to boot). - mfg Replies: |
Sponsored Links
|