I have a TextArea in javafx but I need to get the coordinates or positions (x, y) to move a floating menu inside the textArea : 
I have a problem and I can not find how to solve it and searched the internet and no information can tell me how I can get the coordinates or the position (x, y) of the cursor inside a TextArea javafx.