e.printStackTrace();\r
}\r
\r
+ if(seq.getPDBId()==null)\r
+ pdbMenuItem.setVisible(false);\r
+\r
SequenceGroup sg = ap.av.getSelectionGroup();\r
\r
if (sg != null)\r
\r
if (s != null)\r
{\r
- sequence.setName(s);\r
- ap.repaint();\r
+ if(s.indexOf(" ")>-1)\r
+ JOptionPane.showMessageDialog(ap, "Spaces have been converted to \"_\"",\r
+ "No spaces allowed in Sequence Name", JOptionPane.WARNING_MESSAGE);\r
+ s = s.replace(' ', '_');\r
+ sequence.setName(s);\r
+ ap.repaint();\r
}\r
}\r
\r