148
149 static void initSecurityWarning() {
150 // Enable warning only for internal builds
151 String runtime = AccessController.doPrivileged(
152 new GetPropertyAction("java.runtime.version"));
153 securityWarningEnabled = (runtime != null && runtime.contains("internal"));
154 }
155
156 static boolean isSecurityWarningEnabled() {
157 return securityWarningEnabled;
158 }
159
160 static native void awt_output_flush();
161
162 static void awtFUnlock() {
163 awtUnlock();
164 awt_output_flush();
165 }
166
167
168 public native void nativeLoadSystemColors(int[] systemColors);
169
170 static UIDefaults getUIDefaults() {
171 if (uidefaults == null) {
172 initUIDefaults();
173 }
174 return uidefaults;
175 }
176
177 public void loadSystemColors(int[] systemColors) {
178 nativeLoadSystemColors(systemColors);
179 MotifColorUtilities.loadSystemColors(systemColors);
180 }
181
182
183
184 static void initUIDefaults() {
185 try {
186 // Load Defaults from MotifLookAndFeel
187
188 // This dummy load is necessary to get SystemColor initialized. !!!!!!
|
148
149 static void initSecurityWarning() {
150 // Enable warning only for internal builds
151 String runtime = AccessController.doPrivileged(
152 new GetPropertyAction("java.runtime.version"));
153 securityWarningEnabled = (runtime != null && runtime.contains("internal"));
154 }
155
156 static boolean isSecurityWarningEnabled() {
157 return securityWarningEnabled;
158 }
159
160 static native void awt_output_flush();
161
162 static void awtFUnlock() {
163 awtUnlock();
164 awt_output_flush();
165 }
166
167
168 private native void nativeLoadSystemColors(int[] systemColors);
169
170 static UIDefaults getUIDefaults() {
171 if (uidefaults == null) {
172 initUIDefaults();
173 }
174 return uidefaults;
175 }
176
177 public void loadSystemColors(int[] systemColors) {
178 nativeLoadSystemColors(systemColors);
179 MotifColorUtilities.loadSystemColors(systemColors);
180 }
181
182
183
184 static void initUIDefaults() {
185 try {
186 // Load Defaults from MotifLookAndFeel
187
188 // This dummy load is necessary to get SystemColor initialized. !!!!!!
|