From 0e24f27d3707170f5b9101f81b415a12e3c423d0 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 30 Aug 2016 15:26:31 +0100 Subject: [PATCH] JAL-2183 removed redundant (overriden) add panel to container --- src/jalview/gui/SequenceFetcher.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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(); } -- 1.7.10.2