This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
<code-name-base>org.netbeans.swing.plaf</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency/>
<run-dependency>
<specification-version>1.15</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.actions</code-name-base>
import org.netbeans.core.startup.RunLevel;
import org.netbeans.core.startup.Splash;
import org.netbeans.core.startup.StartLog;
import org.netbeans.swing.plaf.Startup;
import org.openide.awt.StatusDisplayer;
import org.openide.util.Lookup;
import org.openide.util.NbBundle;
/** Method to initialize the main window.
*/
private void initializeMainWindow() {
Startup.setClassLoader(Lookup.getDefault().lookup(ClassLoader.class)); // #182507
StartLog.logStart ("Main window initialization"); //NOI18N
TimableEventQueue.initialize();
Manifest-Version: 1.0
OpenIDE-Module-Localizing-Bundle: org/netbeans/swing/plaf/Bundle.properties
OpenIDE-Module: org.netbeans.swing.plaf
OpenIDE-Module-Specification-Version: 1.14
OpenIDE-Module-Specification-Version: 1.15
AutoUpdate-Show-In-Client: false
}
private static ClassLoader loader;
/**
* Set a class loader to be used in place of {@link Thread#getContextClassLoader}.
* @param loader a system-wide class loader
* @since org.netbeans.swing.plaf 1.15
public static void setClassLoader(ClassLoader loader) {
Startup.loader = loader;
/** Gets the value of system class loader and returns it.
private static final class CLValue implements UIDefaults.ActiveValue {
public Object createValue (UIDefaults defs) {
public @Override ClassLoader createValue(UIDefaults defs) {
return Thread.currentThread().getContextClassLoader();
return loader != null ? loader : Thread.currentThread().getContextClassLoader();