Java java.awt Menu fields, constructors, methods, implement or subclass

Example usage for Java java.awt Menu fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Menu.

The text is from its open source code.

Subclass

java.awt.Menu has subclasses.
Click this link to see all its subclasses.

Constructor

Menu(String label)
Constructs a new menu with the specified label.
Menu()
Constructs a new menu with an empty label.

Method

MenuItemadd(MenuItem mi)
Adds the specified menu item to this menu.
voidadd(String label)
Adds an item with the specified label to this menu.
voidaddActionListener(ActionListener l)
Adds the specified action listener to receive action events from this menu item.
voidaddSeparator()
Adds a separator line, or a hypen, to the menu at the current position.