From: amwaterhouse Date: Fri, 18 Aug 2006 08:52:28 +0000 (+0000) Subject: only set new layout if 2 buttons visible X-Git-Tag: Release_2_1~34 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c41fb5c4448bb657b7478cef551d3377aa290b88;p=jalview.git only set new layout if 2 buttons visible --- diff --git a/src/jalview/gui/WebserviceInfo.java b/src/jalview/gui/WebserviceInfo.java index ccda9d1..4292687 100755 --- a/src/jalview/gui/WebserviceInfo.java +++ b/src/jalview/gui/WebserviceInfo.java @@ -372,8 +372,10 @@ public class WebserviceInfo extends GWebserviceInfo buttonPanel.remove(cancel); buttonPanel.add(showResultsNewFrame); if (serviceCanMergeResults) + { buttonPanel.add(mergeResults); - buttonPanel.setLayout(new GridLayout(2,1,5,5)); + buttonPanel.setLayout(new GridLayout(2, 1, 5, 5)); + } buttonPanel.validate(); validate(); if (viewResultsImmediatly)