• Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving in HTML files.

 
Maha Abdel Aziz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am facing same problems in developping my project. I am making a tool
to provide rich text editing like MS Word. It provides diffent font size, style, text alignement ...etc
the tool saves text in .html files.
a Jtree shows the created files names. When a user clikes on the corresponding leaf the file is opened and content is displayed on a jTextPane.
My problem is the text is saved the first time only the file is created and opened to write. If the user selects an already created file , it does not save the new text.It even some time erease all its content.
Can any one give me a trick to solve this?
Plz it's urgent , i hope to get help soon
Many thnx
 
Maha Abdel Aziz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just wanted to add that saving is done once something is written on the textPane using DocumentListener.
May this cause any clash with the file opening?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!