Set minimum size for windows
This commit is contained in:
parent
92510cdaa2
commit
7a5fcb010e
2 changed files with 2 additions and 1 deletions
|
@ -225,6 +225,7 @@ public class ManagerFrame extends JFrame implements ActionListener, HashObserver
|
|||
|
||||
this.setContentPane( contentPane );
|
||||
this.pack();
|
||||
this.setMinimumSize( new Dimension( 300, modActionsPanel.getPreferredSize().height+90 ) );
|
||||
this.setLocationRelativeTo(null);
|
||||
|
||||
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 += modHash +"\n";
|
||||
infoArea.setDescription( modFileInfo.getName(), body );
|
||||
log.info( String.format("No info for selected mod: %s (%s).", modFileInfo.getName(), modHash) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ public class ModPatchDialog extends JDialog implements ActionListener, ModPatchO
|
|||
getContentPane().add( continueHolder, BorderLayout.SOUTH );
|
||||
|
||||
this.setSize( 400, 160 );
|
||||
this.setMinimumSize( this.getPreferredSize() );
|
||||
this.setLocationRelativeTo( owner );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue