• Post Reply Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError with my own StyledDocument  RSS feed

 
Jan Reimers
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm trying to write a editor with syntax hilightning. I'm using a JEditorPane and my own StyledDocument class. In the insertString() method the added text is parsed and decorated with attributes. It works, but the problem is that only files with a size smaller than about 300k can be loaded. If the file is larger an OutOfMemoryError occures. (My computer has 512MB ram.)


Thanks

Jan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!