title: JavaFX ImageView not refreshing
body: <p>This relates to JavaFX: I have a 'Products' window which contains a TableView filled with a products list, a few buttons (Edit, Delete, Add, Search) and an ImageView with the picture of the currently selected product (this pic changes correctly on click). </p>
  
  <p>Clicking on the 'Edit' button opens a new window where I can change the image file for the product and correctly saves the new pic to the file system (one note here: the new image overwrites the old one, meaning the image path/filename remains the same).</p>
  
  <p>When I close this 'Edit' window, I clean the picture in the ImageView control by doing: </p>
  
  <p><code>imageView.setImage(null);</code></p>
  
  <p>and then I set the "new" image:</p>
  
  <p><code>imageView.setImage(new Image(path));</code></p>
  
  <p>Setting the image to null efectively removes the old image, however, the imageView container keeps showing the "old picture" after setting the new one. Is there any kind of chache that needs to be cleaned? How can I "tell" the ImageView container that the image has changed, even though the filename is the same?</p>
  
  <p>Thanks for the help, and sorry for my bad english.</p>