JavaScript is disabled on your browser.
This specification is not final and is subject to change. Use is subject to
license terms
.
Skip navigation links
Overview
Class
Use
Tree
Preview
New
Deprecated
Index
Search
Help
Java SE 24 & JDK 24
DRAFT 24-crac+20-25
java.desktop
javax.swing.event
MenuListener
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Method Summary
Method Details
menuSelected(MenuEvent)
menuDeselected(MenuEvent)
menuCanceled(MenuEvent)
Interface MenuListener
All Superinterfaces:
EventListener
public interface
MenuListener
extends
EventListener
Defines a listener for menu events.
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
void
menuCanceled
(
MenuEvent
e)
Invoked when the menu is canceled.
void
menuDeselected
(
MenuEvent
e)
Invoked when the menu is deselected.
void
menuSelected
(
MenuEvent
e)
Invoked when a menu is selected.
Method Details
menuSelected
void
menuSelected
(
MenuEvent
e)
Invoked when a menu is selected.
Parameters:
e
- a MenuEvent object
menuDeselected
void
menuDeselected
(
MenuEvent
e)
Invoked when the menu is deselected.
Parameters:
e
- a MenuEvent object
menuCanceled
void
menuCanceled
(
MenuEvent
e)
Invoked when the menu is canceled.
Parameters:
e
- a MenuEvent object