![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I am using a JEditorPane to display a Java source file, and my goal is to be able to display the line number and column number somewhere on my JFrame much like all the Java IDE's do. I also want to be able to provide a "goto line number" and "search for text string" set of functions. I have searched everything I can find on the subject of JEditorPane and have not been able to locate anything that describes how I can position the pane to a given line number. Obtaining the Element list from the Document appears to have some 'hope', but I am not completely certain that method will work. Anyone have any ideas on how to do the above ?
Replies:
|
Sponsored Links
|