* 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
}
/**
- * Overridden to set the bounds of the frame holding the Overview panel
+ * Sets the bounds of the frame holding the Overview panel
*
* @param xpos
* @param ypos
* @param width
* @param height
*/
- @Override
- public void setBounds(int xpos, int ypos, int width, int height)
+ public void setFrameBounds(int xpos, int ypos, int width, int height)
{
internalFrame.setBounds(xpos, ypos, width, height);
}
/**
- * Overridden to return the bounds of the enclosing frame
+ * Returns the bounds of the enclosing frame
*
* @return
*/
- @Override
- public Rectangle getBounds()
+ public Rectangle getFrameBounds()
{
return internalFrame.getBounds();
}
+
+ /**
+ * Closes the frame containing the overview panel
+ */
+ public void close()
+ {
+ internalFrame.dispose();
+ }
}