From: jprocter Date: Mon, 1 Oct 2012 16:14:41 +0000 (+0100) Subject: JAL-1130 JAL-1137 messy hardcoding of author list to fixed height so it is visible... X-Git-Tag: Jalview_2_9~277 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d720fe0edcdcebfdb26e696b74a86d871a89767e;p=jalview.git JAL-1130 JAL-1137 messy hardcoding of author list to fixed height so it is visible - means we will have to increase height when more authors are added. --- diff --git a/src/jalview/gui/SplashScreen.java b/src/jalview/gui/SplashScreen.java index 3120388..875272a 100755 --- a/src/jalview/gui/SplashScreen.java +++ b/src/jalview/gui/SplashScreen.java @@ -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);