X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FSequenceFetcher.java;h=51be6304fceaa4c97e2c19ea3f4877722e823b85;hb=bd164fb713c61d281b1f881f6fbd830ac6db1b03;hp=8037fedd0491c19bc9caafd22cd4da2ce0642515;hpb=81667097b92ba72f5eb4d824646b31e7ff5383a0;p=jalview.git diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 8037fed..51be630 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -187,13 +187,13 @@ public class SequenceFetcher extends JPanel implements Runnable if ("pdb".equalsIgnoreCase(currentSelection)) { - new PDBFTSPanel(SequenceFetcher.this); frame.dispose(); + new PDBFTSPanel(SequenceFetcher.this); } else if ("uniprot".equalsIgnoreCase(currentSelection)) { - new UniprotFTSPanel(SequenceFetcher.this); frame.dispose(); + new UniprotFTSPanel(SequenceFetcher.this); } else { @@ -207,11 +207,11 @@ public class SequenceFetcher extends JPanel implements Runnable JLabel jLabel1 = new JLabel(MessageManager .getString("label.separate_multiple_accession_ids")); jLabel1.setFont(new Font("Verdana", Font.ITALIC, 11)); - jLabel1.setHorizontalAlignment(SwingConstants.CENTER); + jLabel1.setHorizontalAlignment(SwingConstants.LEFT); replacePunctuation = new JCheckBox( MessageManager.getString("label.replace_commas_semicolons")); - replacePunctuation.setHorizontalAlignment(SwingConstants.CENTER); + replacePunctuation.setHorizontalAlignment(SwingConstants.LEFT); replacePunctuation.setFont(new Font("Verdana", Font.ITALIC, 11)); okBtn = new JButton(MessageManager.getString("action.ok")); okBtn.addActionListener(new ActionListener() @@ -331,7 +331,7 @@ public class SequenceFetcher extends JPanel implements Runnable } /** - * Action on selected a database other than Uniprot or PDB is to enable or + * Action on selecting a database other than Uniprot or PDB is to enable or * disable 'Replace commas', and await input in the query field */ protected void otherSourceAction() @@ -340,8 +340,7 @@ public class SequenceFetcher extends JPanel implements Runnable { String eq = exampleAccession.getText(); // TODO this should be a property of the SequenceFetcher whether commas - // are and - // colons are allowed in the IDs... + // are allowed in the IDs... boolean enablePunct = !(eq != null && eq.indexOf(",") > -1); replacePunctuation.setEnabled(enablePunct);