* close the parent frame (which also removes it from the
* Desktop Windows menu)
*/
- internalFrame.setClosed(true);
+ ((JInternalFrame) SwingUtilities
+ .getAncestorOfClass(JInternalFrame.class, (this)))
+ .setClosed(true);
} catch (PropertyVetoException e)
{
// ignore