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();
}
double scaleFaktor = (double)Toolkit.getDefaultToolkit().getScreenResolution() / 96.0;
setFontSize((int) (11 * scaleFaktor));
setSize(new Dimension((int) (400 * scaleFaktor), (int) (400 * scaleFaktor)));
setFontSize(11);
setSize(new Dimension(400, 400));
setTitle("ExBox");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
initComponents();