• Post Reply Bookmark Topic Watch Topic
  • New Topic

caret location in JEditorPane HTML

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I have HTML view in JEditorPane. I tried to get caret position in HTML file ( in text file ). The value of getCaretPosition() seems not what I wanted. CaretEvent.getDot() gives the same value of getCaretPosition.
Please help! Thanks a lot!
-ZZ
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!