8161354: policytool fails if it needs to show an error dialog before the main window appears
authorweijun
Thu, 14 Jul 2016 19:31:43 +0800
changeset 39647 cd5deb6026dd
parent 39646 2bf99fe5023b
child 39648 9bbd1300c256
8161354: policytool fails if it needs to show an error dialog before the main window appears Reviewed-by: mullan
jdk/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java
--- a/jdk/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java	Wed Jul 13 11:43:45 2016 -0700
+++ b/jdk/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);