* 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
{
return internalFrame.getBounds();
}
+
+ /**
+ * Closes the frame containing the overview panel
+ */
+ public void close()
+ {
+ internalFrame.dispose();
+ }
}