title: Get notified when the user finishes resizing a JFrame
body: <p>I have a fractal generation component (a subclass of JPanel) inside a JFrame. When the user resizes the window, it takes quite a while to update the fractal to the new size.</p>
  
  <p>I currently have a ComponentListener on the JPanel, but its componentResized event is called every time the user moves the mouse while dragging the window border. This means that the fractal is told to resize many times, and slowly (over the course of a few minutes) grows to the new size.</p>
  
  <p>Is there a way to be notified when the user <em>releases</em> the mouse button, so that I can only change the fractal size when the user has finished resizing?</p>
  
  <p>Others have <a href="https://stackoverflow.com/questions/3919214/java-jframe-resizing">reported</a> this happening when the listener is attached to the JFrame instead, but this doesn't work for me (and <a href="https://stackoverflow.com/questions/2340987/java-swing-do-something-when-a-component-has-finished-resizing">others</a>), for some reason.</p>