Remove scaling - swing seems to take care of it

This commit is contained in:
Manuel Thalmann 2022-11-08 19:58:40 +01:00
parent 4f3fb4c0d9
commit 69e1646e3f

View file

@ -154,9 +154,8 @@ public class ExBoxFrame extends JFrame implements ActionListener, ItemListener {
ex.printStackTrace(); ex.printStackTrace();
} }
double scaleFaktor = (double)Toolkit.getDefaultToolkit().getScreenResolution() / 96.0; setFontSize(11);
setFontSize((int) (11 * scaleFaktor)); setSize(new Dimension(400, 400));
setSize(new Dimension((int) (400 * scaleFaktor), (int) (400 * scaleFaktor)));
setTitle("ExBox"); setTitle("ExBox");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
initComponents(); initComponents();