}\r
}\r
\r
- if (result.length() > 0 && error!=null)\r
+ if (result.length() > 0 && error==null)\r
{\r
String format = IdentifyFile.Identify(result.toString(), "Paste");\r
SequenceI[] sequences = null;\r
}\r
}\r
\r
+ if(error!=null)\r
+ showErrorMessage(error);\r
+\r
database.setEnabled(true);\r
textfield.setEnabled(true);\r
ok.setEnabled(true);\r
cancel.setEnabled(true);\r
frame.setTitle("Sequence Fetcher");\r
\r
- if(error!=null)\r
- JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
- error, "Error Retrieving Data", JOptionPane.WARNING_MESSAGE);\r
\r
}\r
+\r
+ void showErrorMessage(String error)\r
+ {\r
+ JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
+ error, "Error Retrieving Data", JOptionPane.WARNING_MESSAGE);\r
+ }\r
}\r
\r
\r