From d720fe0edcdcebfdb26e696b74a86d871a89767e Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 1 Oct 2012 17:14:41 +0100 Subject: [PATCH] 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. --- src/jalview/gui/SplashScreen.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 1.7.10.2