JPopupMenu

Extends
JComponent
Methods
6
Fields
1

Getting one

JPopupMenu.new()

Methods

MethodReturnsDescription
show(Component?, number, number)()Shows it at (x, y) in invoker's coordinates: its popupMenuWillBecomeVisible listeners run inside the call, then it opens. The invoker…
addPopupMenuListener(any)()Adds a PopupMenuListener (popupMenuWillBecomeVisible, popupMenuWillBecomeInvisible, popupMenuCanceled), the last added first.
removePopupMenuListener(any)()Removes a PopupMenuListener, by identity.
new()JPopupMenuAn empty popup menu.
init(JPopupMenu)()An empty popup menu.
isInstance(any)booleanWhether obj is a JPopupMenu object, a class(JPopupMenu) subclass's included.

Fields

FieldTypeDescription
superJComponentClassJComponent's class table: the base class.

Returned by

MethodReturnsDescription
JPopupMenuClass.newJPopupMenuAn empty popup menu.

Method details

show

show: (JPopupMenu, Component?, number, number) -> ()

Shows it at (x, y) in invoker's coordinates: its popupMenuWillBecomeVisible listeners run inside the call, then it opens. The invoker keeps it alive while it may show. invoker must be showing.

addPopupMenuListener

addPopupMenuListener: (JPopupMenu, any) -> ()

Adds a PopupMenuListener (popupMenuWillBecomeVisible, popupMenuWillBecomeInvisible, popupMenuCanceled), the last added first.

isInstance

isInstance: (any) -> boolean

Whether obj is a JPopupMenu object, a class(JPopupMenu) subclass's included.