Home Button
Contents
Swing Logo

Swinging Duke
Feedback Button
Left ArrowRight Arrow

 

The Swing Popup Menu API

In AWT, a PopupMenu was a menu that could be associated with a Component in such a way that the menu was displayed at the user's request by a given InputEvent. In Swing, a PopupMenu is merely a stub subclass of Menu, which supports all of the things that an AWT Menu could do. In addition, there are plans to add a method to the JComponent class that will associate a Menu with a Container, which will register the Menu as a listener on an MVC Container for the appropriate InputEvent sequence (or sequences). When the event is received, it posts itself, automatically unposting as appropriate for a Menu.

Arrows


Version 0.4. Last modified 09/04/97.
Copyright © 1995-97 Sun Microsystems, Inc. All Rights Reserved.

Sun's Home Page