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.