changeset 17129:600438917b1e

8161354: policytool fails if it needs to show an error dialog before the main window appears Reviewed-by: mullan
author weijun
date Thu, 14 Jul 2016 19:31:43 +0800
parents 62ee45c4406f
children d24c3e835865
files src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java	Wed Jul 13 11:43:45 2016 -0700
+++ b/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java	Thu Jul 14 19:31:43 2016 +0800
@@ -1376,10 +1376,6 @@
         ToolDialog ed = new ToolDialog
                 (PolicyTool.getMessage("Error"), tool, this, true);
 
-        // find where the PolicyTool gui is
-        Point location = ((w == null) ?
-                getLocationOnScreen() : w.getLocationOnScreen());
-        //ed.setBounds(location.x + 50, location.y + 50, 600, 100);
         ed.setLayout(new GridBagLayout());
 
         JLabel label = new JLabel(error);