equal
deleted
inserted
replaced
396 Toolkit.loadLibraries(); |
396 Toolkit.loadLibraries(); |
397 if (!GraphicsEnvironment.isHeadless()) { |
397 if (!GraphicsEnvironment.isHeadless()) { |
398 initIDs(); |
398 initIDs(); |
399 } |
399 } |
400 |
400 |
401 String s = (String) java.security.AccessController.doPrivileged( |
401 String s = java.security.AccessController.doPrivileged( |
402 new GetPropertyAction("java.awt.syncLWRequests")); |
402 new GetPropertyAction("java.awt.syncLWRequests")); |
403 systemSyncLWRequests = (s != null && s.equals("true")); |
403 systemSyncLWRequests = (s != null && s.equals("true")); |
404 s = (String) java.security.AccessController.doPrivileged( |
404 s = java.security.AccessController.doPrivileged( |
405 new GetPropertyAction("java.awt.Window.locationByPlatform")); |
405 new GetPropertyAction("java.awt.Window.locationByPlatform")); |
406 locationByPlatformProp = (s != null && s.equals("true")); |
406 locationByPlatformProp = (s != null && s.equals("true")); |
407 } |
407 } |
408 |
408 |
409 /** |
409 /** |
1376 if (sm != null) { |
1376 if (sm != null) { |
1377 if (!sm.checkTopLevelWindow(this)) { |
1377 if (!sm.checkTopLevelWindow(this)) { |
1378 // make sure the privileged action is only |
1378 // make sure the privileged action is only |
1379 // for getting the property! We don't want the |
1379 // for getting the property! We don't want the |
1380 // above checkTopLevelWindow call to always succeed! |
1380 // above checkTopLevelWindow call to always succeed! |
1381 warningString = (String) AccessController.doPrivileged( |
1381 warningString = AccessController.doPrivileged( |
1382 new GetPropertyAction("awt.appletWarning", |
1382 new GetPropertyAction("awt.appletWarning", |
1383 "Java Applet Window")); |
1383 "Java Applet Window")); |
1384 } |
1384 } |
1385 } |
1385 } |
1386 } |
1386 } |