equal
deleted
inserted
replaced
26 package com.apple.eawt; |
26 package com.apple.eawt; |
27 |
27 |
28 import java.awt.*; |
28 import java.awt.*; |
29 import java.awt.peer.*; |
29 import java.awt.peer.*; |
30 import java.beans.Beans; |
30 import java.beans.Beans; |
31 import java.security.PrivilegedAction; |
|
32 |
31 |
33 import javax.swing.JMenuBar; |
32 import javax.swing.JMenuBar; |
34 |
33 |
35 import sun.lwawt.*; |
34 import sun.lwawt.*; |
36 import sun.lwawt.macosx.*; |
35 import sun.lwawt.macosx.*; |
57 private static native void nativeInitializeApplicationDelegate(); |
56 private static native void nativeInitializeApplicationDelegate(); |
58 |
57 |
59 static Application sApplication = null; |
58 static Application sApplication = null; |
60 |
59 |
61 static { |
60 static { |
62 java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("awt")); |
61 java.security.AccessController.doPrivileged( |
|
62 new java.security.PrivilegedAction<Void>() { |
|
63 public Void run() { |
|
64 System.loadLibrary("awt"); |
|
65 return null; |
|
66 } |
|
67 }); |
63 |
68 |
64 checkSecurity(); |
69 checkSecurity(); |
65 if (!Beans.isDesignTime()) { |
70 if (!Beans.isDesignTime()) { |
66 nativeInitializeApplicationDelegate(); |
71 nativeInitializeApplicationDelegate(); |
67 } |
72 } |