Set minimum size for windows

This commit is contained in:
Vhati 2013-08-21 23:01:21 -04:00
parent 92510cdaa2
commit 7a5fcb010e
2 changed files with 2 additions and 1 deletions

View file

@ -225,6 +225,7 @@ public class ManagerFrame extends JFrame implements ActionListener, HashObserver
this.setContentPane( contentPane ); this.setContentPane( contentPane );
this.pack(); this.pack();
this.setMinimumSize( new Dimension( 300, modActionsPanel.getPreferredSize().height+90 ) );
this.setLocationRelativeTo(null); this.setLocationRelativeTo(null);
showAboutInfo(); showAboutInfo();
@ -412,7 +413,6 @@ public class ManagerFrame extends JFrame implements ActionListener, HashObserver
body += "where you found it and include this md5 hash:\n"; body += "where you found it and include this md5 hash:\n";
body += modHash +"\n"; body += modHash +"\n";
infoArea.setDescription( modFileInfo.getName(), body ); infoArea.setDescription( modFileInfo.getName(), body );
log.info( String.format("No info for selected mod: %s (%s).", modFileInfo.getName(), modHash) );
} }
} }

View file

@ -65,6 +65,7 @@ public class ModPatchDialog extends JDialog implements ActionListener, ModPatchO
getContentPane().add( continueHolder, BorderLayout.SOUTH ); getContentPane().add( continueHolder, BorderLayout.SOUTH );
this.setSize( 400, 160 ); this.setSize( 400, 160 );
this.setMinimumSize( this.getPreferredSize() );
this.setLocationRelativeTo( owner ); this.setLocationRelativeTo( owner );
} }