JavaFX hide Node after some duration
<p>A <code>Stage</code> exist which contains some simple nodes like a <code>Circle</code>(RIGHT) and a <code>Rectangle</code>(LEFT) in a <code>BordePane</code> Layout.</p>

<ol>
<li><p>What I want is if the mouse has not been moved for 1 second (in the window) the circle to disappear.</p></li>
<li><p>If the elememt has not entered <code>Rectangle</code> during the last 1 second the rectangle to disappear.</p></li>
</ol>

<p>I am thinking of using a <code>Thread</code> but it doesn't seem right.</p>

<p>Is there any <code>JavaFX</code> packages to do this?Some code would be grateful.</p>