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

index fba790f..f07ade2 100644 (file)
@@ -159,11 +159,11 @@ public class JDatabaseTree extends JalviewDialog implements KeyListener
     dbviews.getSelectionModel().setSelectionMode(
             TreeSelectionModel.SINGLE_TREE_SELECTION);
     svp.getViewport().setView(dbviews);
-    // svp.getViewport().setMinimumSize(new Dimension(300,200));
-    // svp.setSize(300,250);
-    // JPanel panel=new JPanel();
-    // panel.setSize(new Dimension(350,220));
-    // panel.add(svp);
+    svp.getViewport().setMinimumSize(new Dimension(300, 200));
+    svp.setSize(300, 250);
+    JPanel panel = new JPanel(new BorderLayout());
+    panel.setSize(new Dimension(350, 220));
+    panel.add(svp);
     dbviews.addTreeSelectionListener(new TreeSelectionListener()
     {