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.
Between b74ae26eeefb and 38ea4c96b37b, using this flag produces: java.lang.AssertionError: Must run in AWT queue. at org.netbeans.core.windows.view.ui.MainWindow.decoratePanel(MainWindow.java:236) at org.netbeans.core.windows.view.ui.MainWindow.createMenuBar(MainWindow.java:387) at org.netbeans.core.windows.view.ui.MainWindow.init(MainWindow.java:142) at org.netbeans.core.windows.WindowSystemImpl.init(WindowSystemImpl.java:68) at org.netbeans.core.NonGui.initializeMainWindow(NonGui.java:169) at org.netbeans.core.NonGui.run(NonGui.java:104) at org.netbeans.core.startup.Main.start(Main.java:319) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110) at java.lang.Thread.run(Thread.java:619) and the IDE exits.
BTW this flag's main purpose is to avoid wasting a bunch of vertical screen space on a status line which is usually empty and even when not empty can usually fit comfortably into the otherwise blank area to the right of the menus. In practice this translates to an extra line or two of editor text, which is significant on a laptop.
caused by jarda's fix of #30121
Created attachment 78154 [details] Proposed patch
I would fix this using the above patch. Imho it is safe to construct components outside of AWT before the main window is shown. But I'd rather let it for Standa to accept or reject this change.
Last I remember, making AWT comps outside of EQ is never safe, even if no window has yet been shown.
well, very recently i was fixing a couple of deadlocks because swing components were created/accessed outside AWT thread. can't we create the main window in AWT thread?
alright, go ahead and integrate the patch. if the main window isn't visible yet then the risk is low
core-main#e6f192991faa
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e6f192991faa User: Jaroslav Tulach <jtulach@netbeans.org> Log: #159930: Integrating patch as S. Aubrecht suggested. Mainwindow can be created outside of AWT initially.