https://kodejava.org/how-do-i-know-the-current-position-of-cursor/
How do I know the current position of cursor?