Solved

How to get the line and column numbers in JTextPane

Posted on 2006-11-10
2
516 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
2 Comments
 
LVL 24

Accepted Solution

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

;JOOP!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now