From: gmungoc Date: Tue, 30 Aug 2016 14:26:31 +0000 (+0100) Subject: JAL-2183 removed redundant (overriden) add panel to container X-Git-Tag: Release_2_10_0~67 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0e24f27d3707170f5b9101f81b415a12e3c423d0;p=jalview.git JAL-2183 removed redundant (overriden) add panel to container --- diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 828a2aa..e1644e7 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -364,7 +364,6 @@ public class SequenceFetcher extends JPanel implements Runnable jPanel1.add(example); jPanel1.add(clear); jPanel1.add(close); - jPanel3.add(jPanel2, java.awt.BorderLayout.CENTER); jPanel2.setLayout(borderLayout3); databaseButt = /*database.getDatabaseSelectorButton(); final JButton viewdbs =*/new JButton( @@ -394,13 +393,15 @@ public class SequenceFetcher extends JPanel implements Runnable showPanel(); - if (currentSelection.equalsIgnoreCase("pdb") - && (database.action == KeyEvent.VK_ENTER || ((debounceTrap % 2) == 0))) + if ("pdb".equalsIgnoreCase(currentSelection)) + // && (database.action == KeyEvent.VK_ENTER || ((debounceTrap % 2) == + // 0))) { pdbSourceAction(); } - else if (currentSelection.equalsIgnoreCase("uniprot") - && (database.action == KeyEvent.VK_ENTER || ((debounceTrap % 2) == 0))) + else if ("uniprot".equalsIgnoreCase(currentSelection)) + // && (database.action == KeyEvent.VK_ENTER || ((debounceTrap % 2) == + // 0))) { uniprotSourceAction(); }