From d8df6dc37ed09db9f3cb5b61140967754226f1fe Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 4 May 2007 13:32:23 +0000 Subject: [PATCH] Rename AppJMol to AppJmol - also AppJmol works with independant sequence sets --- src/jalview/gui/Jalview2XML.java | 32 +++++++++++++++++++++++-------- src/jalview/gui/PopupMenu.java | 2 +- src/jalview/gui/ScriptWindow.java | 4 ++-- src/jalview/gui/UserDefinedColours.java | 4 ++-- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 198db44..16d7bd5 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -351,14 +351,14 @@ public class Jalview2XML pdb.setId(entry.getId()); pdb.setType(entry.getType()); - AppJMol jmol; + AppJmol jmol; //This must have been loaded, is it still visible? JInternalFrame[] frames = Desktop.desktop.getAllFrames(); for (int f = frames.length - 1; f > -1; f--) { - if (frames[f] instanceof AppJMol) + if (frames[f] instanceof AppJmol) { - jmol = (AppJMol) frames[f]; + jmol = (AppJmol) frames[f]; if (!jmol.pdbentry.getId().equals(entry.getId())) continue; @@ -1884,7 +1884,23 @@ public class Jalview2XML int width = ids[p].getStructureState(s).getWidth(); int height = ids[p].getStructureState(s).getHeight(); - java.awt.Component comp = Desktop.desktop.getComponentAt(x, y); + java.awt.Component comp = null; + + JInternalFrame [] frames = Desktop.desktop.getAllFrames(); + for(int f=0; f