title: How can a JComponent notified about the closed event of it's parent J(Internal)Frame?
body: <p>I want to write a component that monitors other activities, but it's listeners are to be removed when the component's window is closed.</p>
  
  <p>I don't want to write this removal code many times, but want the component to handle it itself. (How) can i do it?</p>
  
  <p>Thanks!</p>