addSeparator() Add a separator line to the menu. menu.addSeparator() Useful for grouping related items.