Example usage for Java java.awt Menu fields, constructors, methods, implement or subclass
The text is from its open source code.
Menu(String label) Constructs a new menu with the specified label. | |
Menu() Constructs a new menu with an empty label. |
MenuItem | add(MenuItem mi) Adds the specified menu item to this menu. |
void | add(String label) Adds an item with the specified label to this menu. |
void | addActionListener(ActionListener l) Adds the specified action listener to receive action events from this menu item. |
void | addSeparator() Adds a separator line, or a hypen, to the menu at the current position. |