Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Save a Styled Document as flat file

Chella Anu
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTextPane and the Styled Document of this JTextPane must be saved as a flat file. When I start my Application again , the previous StyleDocument has to be loaded.
However as I have foreign characters and much formatted text, when I try to save using ObjectOutputStream , I get Not Serialized Exception.
Can any one help me to save this StyledDocument as flat file in the Disk?
no wonder he is so sad, he hasn't seen this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!