JAL-2255 possible bug fix
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 12 Oct 2016 14:42:59 +0000 (15:42 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 12 Oct 2016 14:42:59 +0000 (15:42 +0100)
src/jalview/gui/JDatabaseTree.java

index 2a3d788..fba790f 100644 (file)
@@ -88,9 +88,12 @@ public class JDatabaseTree extends JalviewDialog implements KeyListener
 
   private JLabel dbstatus, dbstatex;
 
+  private JPanel mainPanel = new JPanel(new BorderLayout());
+
   public JDatabaseTree(jalview.ws.SequenceFetcher sfetch)
   {
-    initDialogFrame(this, true, false,
+    mainPanel.add(this);
+    initDialogFrame(mainPanel, true, false,
             MessageManager
                     .getString("label.select_database_retrieval_source"),
             650, 490);