• Post Reply Bookmark Topic Watch Topic
  • New Topic

track changes java application

 
mike Quinn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

First Post

Ok i have a small text editor application. with some jtextpanes in it. I want to be able to track changes within these jtextpanes application a bit like word does it.

Is there any class or plugin that might be useful? It doesnt have to be as big as the msword one but a simplified version would be nice.

Thanks.
D
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike,
Welcome to the Ranch. We are happy to have you here

One way of approaching your problem is to use the DocumentListener, using which you can get notifications for all changes.
Typically you use it by
 
vera wang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool! Following this topic, any advice about using custom tags (like, "insert"/"delete") with custom view (like strikethrough with red color) in JTextPane?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally haven't done it yet, but you can take a look at the "Highlighter". There might be something in there which can be used for "strike through" effect.

...and Welcome to the Ranch
 
vera wang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Maneesh Godbole! We will dig more and update our finding. Hope anyone see this, please keep providing advice, and we will put our final solution here later on. Really appreciated!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!