Line Number in JTextPane
843804Apr 3 2005 — edited Jul 24 2007Hi, i'm trying to work out how to get the line number that the caret is on. I can get the caret position but thats just the number of characters before the cursor. I'm sure this must be pretty easy. Please help
clarkie