fix: window cannot get smaller than the field

Mon, 27 Jul 2020 12:08:23 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 27 Jul 2020 12:08:23 +0200
changeset 15
fea6eaa0d520
parent 14
959e13642554
child 16
bddb2633c98b

fix: window cannot get smaller than the field

src/main/java/de/uapcore/sudoku/Sudoku.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/sudoku/Sudoku.java	Mon Jul 27 11:57:42 2020 +0200
+++ b/src/main/java/de/uapcore/sudoku/Sudoku.java	Mon Jul 27 12:08:23 2020 +0200
@@ -60,6 +60,7 @@
         content.setBackground(Color.WHITE);
         setLocationByPlatform(true);
         setDefaultCloseOperation(EXIT_ON_CLOSE);
+        setMinimumSize(getSize());
     }
 
     /**

mercurial