title: Listner for JRadioButtonMenuItem to get the event on disposal
body: <p>I have a class extending JRadioButtonMenuItem. Is there a way that I can capture an event when the instance of my class is getting disposed from the UI. I am not sure which listener to have to capture this event.</p>
  
  <p>To put it more clearly, I have a set of <code>JRadioButtonMenuItem</code> instance(actually instance of a class that extends <code>JRadioButtonMenuItem</code>), as per the implementation that i have the instance is added as listener to one of my class,say <code>EventSourceEx</code> and listening. This will be added as a listener when the instance of <code>JRadioButtonMenuItem</code>  is getting created.</p>
  
  <p>So when the <em>JMenu</em> containing the menu item instance mentioned above,disappears I want to remove the <code>JRadioButtonMenuItem</code> from <code>EventSourceEx</code>instance. So my idea is if there is an even that I can capture from the <code>JRadioButtonMenuItem</code> or the <code>JMenu</code>, I'll be notified that the menu/Menuitem is getting disposed so that I'll remove the instance from the <code>EventSourceEx</code>.
  Does <code>JMenu</code> or <code>JRadioButtonMenuItem</code> has any mechanism to notify an even when it dissapears.</p>