This class implements accessibility support for the
JMenuBar class. It provides an implementation of the
Java Accessibility API appropriate to menu bar user-interface
elements.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
Get the AccessibleSelection associated with this object. In the
implementation of the Java Accessibility API for this class,
return this object, which is responsible for implementing the
AccessibleSelection interface on behalf of itself.
Selects the nth menu in the menu bar, forcing it to
pop up. If another menu is popped up, this will force
it to close. If the nth menu is already selected, this
method has no effect.
Removes the nth selected item in the object from the object's
selection. If the nth item isn't currently selected, this
method has no effect. Otherwise, it closes the popup menu.
Normally causes every selected item in the object to be selected
if the object supports multiple selections. This method
makes no sense in a menu bar, and so does nothing.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.