From 69e1646e3fca738a1e464a8428b846c3f408cff6 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 8 Nov 2022 19:58:40 +0100 Subject: [PATCH] Remove scaling - swing seems to take care of it --- app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java b/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java index 3a68517..e69d3cf 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java @@ -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();