From: amwaterhouse Date: Mon, 17 Jan 2005 18:08:25 +0000 (+0000) Subject: Clustal align DNA spinner added X-Git-Tag: Release_2_0~749 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e168a1db5ad249f781a2297036aecdd9b2bfd94b;p=jalview.git Clustal align DNA spinner added --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index a41491a..500bf84 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -802,28 +802,107 @@ public class AlignFrame extends GAlignFrame public void clustalAlignMenuItem_actionPerformed(ActionEvent e) { - // JBPNote - // Should check to see if the server settings are valid - // Need visual-delay indication here. - jalview.ws.Jemboss jemboss = new jalview.ws.Jemboss(); + JInternalFrame frame = new JInternalFrame(); + ClustalThread ct = new ClustalThread(frame); + Thread t = new Thread(ct); + t.start(); + frame.setContentPane(ct); + Desktop.addInternalFrame(frame, title, 300, 80); - Vector sv = viewport.getAlignment().getSequences(); - SequenceI[] seqs = new SequenceI[sv.size()]; + } - int i=0; - do + class ClustalThread extends JPanel implements Runnable + { + Image [] image; + int imageIndex = 0; + boolean webServiceRunning = false; + JInternalFrame frame; + public ClustalThread(JInternalFrame frame) { - seqs[i] = (SequenceI) sv.elementAt(i); - } while (++i