All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javaUI.J_MenuBar
Because there is only one menu bar in a Mac application,
all of J_MenuBar's methods are static. You should call
new J_MenuBar()
early in the program's execution to
initialize the menu bar, but that individual instance can be
thrown away.
Note that it is an error to call new J_MenuBar()
more than once.
MenuItem
's removeActionListener
.
MenuItem
's removeActionListener
.
MenuItem
's addActionListener
method, except that in J_MenuBar, a menu item can have
at most one ActionListener at a time.
public static final int NEW
public static final int OPEN
public static final int CLOSE
public static final int SAVE
public static final int SAVE_AS_
public static final int REVERT
public static final int QUIT
public static final int UNDO
public static final int REDO
public static final int CUT
public static final int COPY
public static final int PASTE
public static final int CLEAR
public static final int DUPLICATE
public static final int SELECT_ALL
public static final int INPUT_SETTINGS_
public static final int NEW_VIRTUAL_4CONTROL
public static final int PREFERENCES_
public J_MenuBar() throws javaUI.E_Double_Init
public static java.awt.MenuBar get_MBar()
public static javaUI.J_MenuBar.MenuCommandItem getItem(int i)
public static void swapActionListener(int what, java.awt.event.ActionListener who)
MenuItem
's addActionListener
method, except that in J_MenuBar, a menu item can have
at most one ActionListener at a time. A call to
swapActionListener
removes the old ActionListener
(if any) before adding the new one. Note that J_MenuBar automatically
enables any menu item for which there is a registered ActionListener,
and disables any menu item for which there isn't.
public static void removeActionListener(int what, java.awt.event.ActionListener who)
MenuItem
's removeActionListener
.
Note that J_MenuBar automatically enables any menu item for which
there is a registered ActionListener, and disables any menu item
for which there isn't.
public static void removeActionListener(int what)
MenuItem
's removeActionListener
.
Removes the currently-registered ActionListener object.
Note that J_MenuBar automatically enables any menu item for which
there is a registered ActionListener, and disables any menu item
for which there isn't.
All Packages Class Hierarchy This Package Previous Next Index