Hello, everybody.
I have created the Java program to solve the following exercise:
(Geometry: inside a circle?)
Write a program that draws a fixed circle centered
at (100, 60) with radius 50.
Whenever the mouse is moved, display a message
indicating whether the mouse point is inside the
circle at the mouse point or
outside of it, as shown in Figure
The program I've created is working well.
I'm using the Text class to present the position of the mouse (x and y) and also the message saying if the mouse point is inside the circle or not.
I've already improved my own program so that the message is always presented entirely visible inside the pane.
There are some situations in which the mouse icon (arrow) gets in top of the message being presented.
And when that happens the mouse icon (arrow) doesn't alllow the user to read the entire message.
I already know that one possible solution is to change the Font in the Text object, to increase the size of the letters.
So, this brings me to the question.
Is it possible to make sure that, when the mouse is above a certain node, that the mouse is presented "below" that same node ?
That would allow the user to always see the message in the best conditions, regardless of the position of the mouse.
Thank you,
Rogério