Dapatkan Posisi Kursor di Textarea Java

int currentCaretPosition = textPane.getCaretPosition();
Strange Seahorse