I would like to know the maximum size of data that a JTextPane could hold. This is needed as I am unable to retrieve the entire contents of a JTextPane , for writing out to a file , in an application at my office.
In that application I generate XML based on some business logic , load it into a JTextPane and upon validation of the same , write it out to the disk.
I'm losing a part of the JTextPane contents ( the data that is to be written out) on creating a File object for this purpose.