R
Roy
Hi,
I am using a JEditorPane to open plain text file and html file
alternately. If I open the html file first, and then the plain text,
some punctuation marks in the plain text have changed. For example,
from ' to ', from " to " . However, if I open plain text first,
everything looks fine.
I guess the previous html document has installed something into the
document that can influence future contents.
Is there any way to avoid this? Is there any way to clear everything
about the previous document in the JEditorPane so that it is ready for
future document, which can be either html or plain text ?
Thanks a lot
Roy
I am using a JEditorPane to open plain text file and html file
alternately. If I open the html file first, and then the plain text,
some punctuation marks in the plain text have changed. For example,
from ' to ', from " to " . However, if I open plain text first,
everything looks fine.
I guess the previous html document has installed something into the
document that can influence future contents.
Is there any way to avoid this? Is there any way to clear everything
about the previous document in the JEditorPane so that it is ready for
future document, which can be either html or plain text ?
Thanks a lot
Roy