File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes run of of memory in JTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "run of of memory in JTextArea" Watch "run of of memory in JTextArea" New topic
Author

run of of memory in JTextArea

Marcus Hoe
Greenhorn

Joined: May 18, 2001
Posts: 14
As my program keeps running and append text to the JTextArea, it soon throws "out of memory" exception. So how do i tackle this problem without setting the text to "". Coz i still want to retain the history, maybe just delete half.
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
I'm not positive about this because I've never ran out of memory, but maybe you should try a JTextPane or JEditorPane instead of a JTextArea, which is pretty limited.
 
 
subject: run of of memory in JTextArea
 
Threads others viewed
superscript text JTextArea
Problem using a String containing large number of characters.
how to get the info from a jtextarea
JTextArea
how to get the info from a jtextarea
IntelliJ Java IDE