From 6f35a6b5d5edf1294c535b912b1a331b2df2487a Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 15 Jun 2009 21:46:28 +0000 Subject: Moved base initialization of Mac port of Newt back into static initializer of MacWindow to address bootstrapping problems with JavaFX-based demos in multiple workspaces. It appears that making this lazier was allowing AWT classes to be touched before Newt was initialized, leading to problems. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1957 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java b/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java index fe0fc76c4..2c1ca7c89 100755 --- a/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java +++ b/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java @@ -136,6 +136,10 @@ public class MacWindow extends Window { // non fullscreen dimensions .. private int nfs_width, nfs_height, nfs_x, nfs_y; + static { + initSingleton(); + } + private static volatile boolean isInit = false; public static synchronized void initSingleton() { @@ -151,7 +155,6 @@ public class MacWindow extends Window { } public MacWindow() { - initSingleton(); } protected void createNative(Capabilities caps) { -- cgit v1.2.3