Setting the caret position to lineNumber
Submitted by Tuesday, 18 July, 2006 - 22:10
on
I am trying to make CodeBrowser better, i have found a way to highlight the current function(Tag) in CodeBrowser i would like to submit it, but i am highlighting the tag where the caret is. I want to be able to highlight the current tag even when you scrolldown or up so the visible text will be the current tag, i want to move the caret to the top position of the viewed text if it's a scrolldown and bottom position if it's a scrollup so that way CodeBrowser will highlight the tag where the caret is.
I tried JEditeTextArea.setCaretPosition(position), JEditeTextArea.setCaretMagicPosition(position) with no success, is there another function to move the caret to a line that we want??????
Thx a lot
I tried JEditeTextArea.setCaretPosition(position), JEditeTextArea.setCaretMagicPosition(position) with no success, is there another function to move the caret to a line that we want??????
Thx a lot