8161354: policytool fails if it needs to show an error dialog before the main window appears
Reviewed-by: mullan
--- 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);