From 6d57bd7717834afcd5f1dc3b60d696eda1997fe8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 5 Nov 2011 05:51:40 +0100 Subject: Cleanup ; JAWT* version flag setting based whether Cleanup - use Platform OS_TYPE - .. JAWT* version flag - if JAWTWindow is Applet, attempt offscreenLayer if avail - .. --- make/config/nativewindow/jawt-CustomJavaCode.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'make/config/nativewindow/jawt-CustomJavaCode.java') diff --git a/make/config/nativewindow/jawt-CustomJavaCode.java b/make/config/nativewindow/jawt-CustomJavaCode.java index 23da6b3b9..090dcb31f 100644 --- a/make/config/nativewindow/jawt-CustomJavaCode.java +++ b/make/config/nativewindow/jawt-CustomJavaCode.java @@ -20,6 +20,12 @@ public static void setJAWTVersionFlags(int versionFlags) { } } +public static boolean isJAWTInstantiated() { + synchronized (JAWT.class) { + return jawt != null; + } +} + /** Helper routine for all users to call to access the JAWT. */ public static JAWT getJAWT() { if (jawt == null) { -- cgit v1.2.3