javafx image remove from imageview
<p>I have a grid-pane containing many ImageView nodes. When clicking on an ImageView, I want to remove the image.</p>

<pre><code> ImageView image = new ImageView("https://www.google.co.in/images/nav_logo242.png");
</code></pre>

<p>On an action, I did:</p>

<pre><code> image.setImage(null);
 System.gc();
</code></pre>

<p>But, I still see the older image. </p>

<pre><code> image.getImage(); // it returns null
</code></pre>