Altered the size of the deckviewer dialog window to be a proportion of screen size to make the most of the available space on higher res screens.

This commit is contained in:
austinio7116
2017-05-18 18:52:24 +00:00
parent 508c76db2b
commit fe2ccbc0a2

View File

@@ -118,8 +118,9 @@ public class FDeckViewer extends FDialog {
} }
}); });
final int width = 800; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
final int height = 600; final int width = (int)(screenSize.width * 0.8);
final int height = (int)(screenSize.height * 0.9);
this.setPreferredSize(new Dimension(width, height)); this.setPreferredSize(new Dimension(width, height));
this.setSize(width, height); this.setSize(width, height);