Create a menu with the given name and entries, which can be null to indicate a separator, a JMenuItem, or an Action to wrap in a JMenuItem.