openNewJmol(ap, new PDBEntry[] { pdbentry }, new SequenceI[][] { seq });
}
private void openNewJmol(AlignmentPanel ap, PDBEntry[] pdbentrys, SequenceI[][] seqs) {
- boolean promptUser=pdbentrys.length==1;
progressBar = ap.alignFrame;
jmb = new AppJmolBinding(this, ap.getStructureSelectionManager(), pdbentrys, seqs, null, null);
addAlignmentPanel(ap);
setSize(400, 400); // probably should be a configurable/dynamic default here
initMenus();
worker=null;
- String filelist="";
-// for (PDBEntry pe: pdbentrys)
-// {
-// if (pe.getFile()==null)
{
addingStructures = false;
worker = new Thread(this);
worker.start();
-// break;
}
-// filelist+=" \""+pe.getFile()+"\"";
-
-/* }
- if (worker==null)
- {
- initJmol("load"+(pdbentrys.length>1 ? " APPEND" : "") + filelist);
- }
-*/
this.addInternalFrameListener(new InternalFrameAdapter()
{
public void internalFrameClosing(InternalFrameEvent internalFrameEvent)