/** * Create a JMenuItem with the specified label and add it to the menu. * * @return a reference to the newly created JMenuItem. */ public JMenuItem add(String text_) { JMenuItem item = new JMenuItem(text_); add(item); return item; }