JAL-1130 JAL-1137 messy hardcoding of author list to fixed height so it is visible...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 1 Oct 2012 16:14:41 +0000 (17:14 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 1 Oct 2012 16:14:41 +0000 (17:14 +0100)
src/jalview/gui/SplashScreen.java

index 3120388..875272a 100755 (executable)
@@ -153,11 +153,12 @@ public class SplashScreen extends JPanel implements Runnable, HyperlinkListener
       authlist.setContentType("text/html");
       authlist.setText(newtext);
       authlist.setVisible(true);
+      authlist.setSize(new Dimension(750, 275));
       add(authlist, BorderLayout.CENTER);
+      revalidate();
       iframe.setBounds((int) ((Desktop.instance.getWidth() - 750) / 2),
-              (int) ((Desktop.instance.getHeight() - 160) / 2), 750,
-              iframe.getPreferredSize().height);
-      //System.err.println("New preferred size: "+iframe.getPreferredSize().height);
+              (int) ((Desktop.instance.getHeight() - 140) / 2), 750,
+              authlist.getHeight()+iconimg.getHeight());
       iframe.validate();
       iframe.setVisible(true);