Adding message before shutting down the program
<p>Before i close my program (press X on the frame) i wish to have a Conformation message that says something alike: "Are you sure you want to close this window" Followed by a yes and no button.</p>

<p>How exactly can i achieve such a thing?
Ive tried looking up a window listener but not much luck so far.</p>

<p>Where do i exactly play this override Windows listener? I have a seperate view and frame class.</p>

<p>Since i do not wish to add controls for the option pane in my frame.</p>
