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.
I.e. it forces the behavior that single submenu items should cause the actions to display as a regular menu item, rather than a submenu. While you can override getUIClassID if you really wanted (and you knew what to do), that will not help because the bridge refuses to add the submenu items if there is only one. So you have to do something messy like add a gratuitous separator to the end.
Actions.SubMenu does not support such behaviour, it is used only with connection with SubMenuModel and it uses only strings and no submenus. It is a question whether or not to create new Actions.GeneralSubMenu class that would support also submenus.
I think you did not understand the bug. When a SubMenu is constructed using a SubMenuModel with >1 item, then all is fine. When there is only 1 item in the model, it automatically displays a plain menu item instead of a submenu. For some purposes, this is fine and good. For other purposes, you really want it to still display a submenu, even though there will only be one item under it. The point is that SubMenu gives you no reasonable way to ask it to choose the second behavior (always show submenu).
If you need to have submenu, why not to use JMenu instead?
Automated change of version from Other to Dev.
Version: 'Dev' -> 3.2
Yeah, why not indeed.
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.