Can now set the initial window size via configuration file for application and ArchA...
[jalview.git] / forester / java / src / org / forester / archaeopteryx / MainFrameApplication.java
index ca14a87..7c13694 100644 (file)
@@ -350,7 +350,9 @@ public final class MainFrameApplication extends MainFrame {
         _contentpane.setLayout( new BorderLayout() );
         _contentpane.add( _mainpanel, BorderLayout.CENTER );
         // App is this big
-        setSize( MainFrameApplication.FRAME_X_SIZE, MainFrameApplication.FRAME_Y_SIZE );
+        setSize( getConfiguration().getFrameXSize() > 40 ? getConfiguration().getFrameXSize() : FRAME_X_SIZE,
+                 getConfiguration().getFrameYSize() > 40 ? getConfiguration().getFrameYSize() : FRAME_Y_SIZE );
+       
         //        addWindowFocusListener( new WindowAdapter() {
         //
         //            @Override