Index: Main.java =================================================================== RCS file: /cvs/core/src/org/netbeans/core/Main.java,v retrieving revision 1.159.16.2 diff -u -r1.159.16.2 Main.java --- Main.java 3 May 2003 00:00:33 -0000 1.159.16.2 +++ Main.java 19 Aug 2003 10:30:13 -0000 @@ -259,6 +259,19 @@ */ protected void initializeMainWindow () { StartLog.logStart ("Main window initialization"); //NOI18N + + // #28536: make sure a JRE bug does not prevent the event queue from having + // the right context class loader + // XXX this is a hack! + try { + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { + Thread.currentThread().setContextClassLoader(getModuleSystem().getManager().getClassLoader()); + } + }); + } catch (Exception ire) { + ire.printStackTrace(); + } // ----------------------------------------------------------------------------------------------------- // 11. Initialization of main window @@ -353,19 +366,10 @@ } }); } - + StatusDisplayer.getDefault().setStatusText (getString("MSG_WindowShowInit")); mainWindow.showWindow (); StatusDisplayer.getDefault().setStatusText(""); // NOI18N - - // #28536: make sure a JRE bug does not prevent the event queue from having - // the right context class loader - // XXX this is a hack! - SwingUtilities.invokeLater(new Runnable() { - public void run() { - Thread.currentThread().setContextClassLoader(getModuleSystem().getManager().getClassLoader()); - } - }); StartLog.logProgress ("Main window opened"); // NOI18N StartLog.logEnd ("Main window initialization"); //NOI18N