+ if (viewport != null)\r
+ {\r
+ for (int i = 0; i < sequences.length; i++)\r
+ {\r
+ viewport.getAlignment().addSequence(sequences[i]);\r
+ }\r
+ viewport.firePropertyChange("alignment", null,\r
+ viewport.getAlignment().getSequences());\r
+\r
+ }\r
+ else\r
+ {\r
+ Alignment al = new Alignment(sequences);\r
+\r
+ alignFrame = new AlignFrame(al,\r
+ AlignFrame.DEFAULT_WIDTH,\r
+ AlignFrame.DEFAULT_HEIGHT);\r