From 61e8bcaf4207de33811282138af2fe92b76276e7 Mon Sep 17 00:00:00 2001 From: Kelly Kelly Date: Fri, 26 Mar 2021 13:02:56 -0400 Subject: [PATCH] solr warning dialog will center now --- .../autopsy/casemodule/SolrNotConfiguredDialog.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/SolrNotConfiguredDialog.java b/Core/src/org/sleuthkit/autopsy/casemodule/SolrNotConfiguredDialog.java index 3adf647596..5fecaa9826 100755 --- a/Core/src/org/sleuthkit/autopsy/casemodule/SolrNotConfiguredDialog.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/SolrNotConfiguredDialog.java @@ -37,11 +37,8 @@ class SolrNotConfiguredDialog extends javax.swing.JDialog { SolrNotConfiguredDialog() { super((JFrame) WindowManager.getDefault().getMainWindow(), true); // Center the startup window. - Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize(); - int width = getSize().width; - int height = getSize().height; - setLocation((screenDimension.width - width) / 2, (screenDimension.height - height) / 2); initComponents(); + setLocationRelativeTo(WindowManager.getDefault().getMainWindow()); setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/warning16.png", false)); }