git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'features/r2_11_2_alphafold/JAL-629' into features/JAL-3858_PAEsInProjects
[jalview.git]
/
src
/
jalview
/
gui
/
OverviewPanel.java
diff --git
a/src/jalview/gui/OverviewPanel.java
b/src/jalview/gui/OverviewPanel.java
index
b84757a
..
872d142
100755
(executable)
--- a/
src/jalview/gui/OverviewPanel.java
+++ b/
src/jalview/gui/OverviewPanel.java
@@
-413,7
+413,9
@@
public class OverviewPanel extends JPanel
* close the parent frame (which also removes it from the
* Desktop Windows menu)
*/
* 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
} catch (PropertyVetoException e)
{
// ignore
@@
-480,4
+482,12
@@
public class OverviewPanel extends JPanel
{
return internalFrame.getBounds();
}
{
return internalFrame.getBounds();
}
+
+ /**
+ * Closes the frame containing the overview panel
+ */
+ public void close()
+ {
+ internalFrame.dispose();
+ }
}
}