Hi,
JTextArea doesn't work with rows and columns, that's JTable.
JTextArea works with a PlainDocument (q.v.) and keeps its data by offset from
the start:
first character = 0, last character is document.getLength();
HTH
Cheers,
Marijn
----- Original Message -----
From: "D. Michael Nelson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 11:23 AM
Subject: JTextArea Row and Column?
: Hello,
:
: I am building a simple Text Editor using JTextArea. Does any know how to
: get the row and column position of the caret? Any suggestion would be
: greatly apprepiated!
:
: Thanks,
: D. Michael Nelson
:
:
: _______________________________________________
: Swing mailing list
: [EMAIL PROTECTED]
: http://eos.dk/mailman/listinfo/swing
:
:
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing