title: JavaFX and Mac: how to set the window close button modified state?
body: <p>I would like to be able to set the application modified state and have this reflected in the window close button (i.e., the black dot inside it).</p>
  
  <p>I found a very nice overview (see:  <a href="http://nadeausoftware.com/node/90" rel="nofollow">http://nadeausoftware.com/node/90</a>) of how to do this with Swing, but I'm using JavaFX so this is not applicable to me. I haven't found a way to do this yet. Any ideas?</p>