• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does JTextPane have document size restrictions?  RSS feed

 
S Saunders
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running into a problem while using a JTextPane to display documents. I have written a simple test class as can be seen below. The largest file I can read in using jdk1.4_2 is 1.6MB. If I use jdk1.4_0, the size is reduced to 0.6MB. I have search in the problem database and could find nothing. Has anyone else seen similar issues? Any ideas for work arounds?
If I use a JTextArea, I have not had this problem only with the JTextPane. I do need to have the ability to display HTML, that is why I have stuck with the JTextPane.
 
Chris Jebaraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i used JEditorPane... but there was no retriction for my file size... I could load upto 3-4 MB Html file into it. I dont know the limitation for JTextPane....
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!