Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to get the line and column numbers in JTextPane

Posted on 2006-11-10
2
Medium Priority
?
541 Views
Last Modified: 2008-01-09
I have trouble to get the line number and column number in JTextPane.  We have a status bar to indicate the line number and column number for the current caret position in JTextPane.  The line and column numbers should conside the wrapped text for a long paragraph.
0
Comment
Question by:MichaelRubinshteyn
1 Comment
 
LVL 24

Accepted Solution

by:
sciuriware earned 750 total points
ID: 17920132
As wrapping is involved you should work from the caret position in the display.
Not easy.

;JOOP!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question