Hi
I developing a chatter application, I used JTexPane with StyledDocument. And i am inserting
string with timestamp in to StyledDocument like below
[22/04/2009 15:22]nathan: hai
[22/04/2009 15:22]nathan: how ru
[22/04/2009 15:22]nathan: i am fine
After that if i wish to hide/show time stamp means the textpane should be modified like
nathan: hai
nathan: how ru
nathan: i am fine
if i give show it should show again the same timestamp...
Is it possible..? if so can i have the logic or sample code...
I am using the code is
But there is no change in textpane.. please provide me the best way to get my requirement
Thanks