\r
void NewTreePanel(String type, String pwType, String title)\r
{\r
+ //are the sequences aligned?\r
+ if(!viewport.alignment.isAligned())\r
+ {\r
+ JOptionPane.showMessageDialog(Desktop.desktop, "The sequences must be aligned before creating a tree.",\r
+ "Sequences not aligned", JOptionPane.WARNING_MESSAGE);\r
+ return;\r
+ }\r
+\r
JInternalFrame frame = new javax.swing.JInternalFrame();\r
TreePanel tp=null;\r
if (viewport.getSelection() != null && viewport.getSelection().size() > 3)\r