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.
Created attachment 159096 [details] Example suite Using the attached openide suite. When one starts it in a mac, the main window shows, and then the menu bar puts on a light show as the menu is repeatedly filled and cleared. This also make the UI unresponsive. Let me know if you need any more info.
Created attachment 159097 [details] Example suite Removed some stuff from the zip
And, yes, I am aware that the layer.xml points to non-existant objects, but I am sure it would behave the same if the objects were there.
Right, I forgot to report it for the current version... That is the version the example suite is built with.
When it happens, it causes the UI to not respond for a while. The more menu items you have, the longer it will take. My current NB platform program will stall for about 15 at start after showing the main window. Please take a look at it.
Created attachment 159934 [details] Example Suite I was able to isolate what is causing this behavior in the example suite. It would be the lines under "<!--So we have copies down here of them-->". Please see what you can do about this.
It appears that a sanity check is failing at MenuBar$MenuBarFolder.createInstance. The check is "ll.equals(Arrays.asList(mb.getComponents()))", which will always fail if you try to have something that is not a JMenuItem on the main bar.
Thanks for your findings! The check in MenuBar$MenuBarFolder.createInstance() needs to be improved.
Fixed by changeset: 299545:4e6554f3c9be http://hg.netbeans.org/core-main/rev/4e6554f3c9be
Integrated into 'main-silver', will be available in build *201607240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4e6554f3c9be User: mentlicher@netbeans.org Log: #258620: Do not refresh the menu bar too much. Add/remove only the new/old items. Tests improved.