From 7c2fe3d63c523d1e996b1c3ce3ee7c97b08b2dbb Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Tue, 3 Jan 2017 12:42:00 -0500 Subject: [PATCH] Make Autopsy scale correctly on high DPI displays --- Core/src/org/sleuthkit/autopsy/core/Installer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/core/Installer.java b/Core/src/org/sleuthkit/autopsy/core/Installer.java index e2036e6f25..187dab5920 100644 --- a/Core/src/org/sleuthkit/autopsy/core/Installer.java +++ b/Core/src/org/sleuthkit/autopsy/core/Installer.java @@ -190,6 +190,11 @@ public class Installer extends ModuleInstall { public Installer() { logger.log(Level.INFO, "core installer created"); //NON-NLS javaFxInit = false; + + // Prevent the Autopsy UI from shrinking on high DPI displays + System.setProperty("sun.java2d.dpiaware", "false"); + System.setProperty("prism.allowhidpi", "false"); + packageInstallers = new ArrayList<>(); packageInstallers.add(org.sleuthkit.autopsy.coreutils.Installer.getDefault()); packageInstallers.add(org.sleuthkit.autopsy.corecomponents.Installer.getDefault());