Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane.setEditotkit(HTMLEditotkit)  RSS feed

 
selvas kumars
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I am rendering html doc in textpane.
i had set textpane.setEditorkit(new HTMLEditokit()), so html doc is rendered in textpane.i am having a tool bar wiith bold italic buttons ...while i make changes by selecting a portion of the text it gets reflected in ui, when made a call like
textpane.getText(), i am able to get html form o/p..This is working fine..
But initially when i do textpane.setText("html doc with bold ,italic tags" ) this gets reflected in ui, when i tried to remove bold, italic using tool bar it gets reflected in ui, when made a call textpane.getText() the old tags is remained
and it is not reflecting the changes i had done..
Can u give me some suggestions what has to be done, so any point of time what ever i see in UI i should be able to get the html o/p.
Thanks for ur time..
Regards,
selva
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!