Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane / JEditorPane / JTextArea with huge data  RSS feed

Sriram Viswanadham
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i've come across a typical problem. I come acorss sopme xml documents in my applications which i gotta display. I'm using JTextPane for the same. But when the document size is > 40KB, the application hangs while rendering the data in the JTextPane.
The problem comes when the data is not formatted i.e. all xml come as a string without any "/n". For formatted xml (like you c it in IE or any Editor) the problem doesn't arise.
Any ideas why this is happening ? Any work arounds ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!