title: How to get location of mouse in JavaFX?
body: <p>I am a beginner in java(fx).<br />
  How do you get the mouse location in x and y in JavaFX? I tried using AWT's <code>MouseInfo</code>(also imported it), but it's not working. I also saw the code for it in Ensembles(that dragging the ball-window in "advanced stage", that's what I need to do, drag my undecorated JavaFX stage), but it also doesn't work. I am using FXML with controller, and I guess that's the main problem. Should I switch back to the single-file simple JavaFX? I know FXML is better for laying out the UI, but I can't get many of such codes to work. Or do I need some other sort of code for my controller? Please give proper codes with comments wherever possible.<br />
  If you need a bit of my code to inspect, feel free to ask.</p>