See JTextComponent.getCaret() and have a look at getMagicCaretPosition() =>
Point
Also getDot() and get Mark() may help for selections - 'int'. If you are only
interested in the position you also could use
JTextComponent.getCaretPosition() - 'int'

Regards,
Stefan


"D. Michael Nelson" wrote:

> 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

Reply via email to