FileDocCategorySizeDatePackage
WindowsPopupMenuUI.javaAPI DocJava SE 5 API3055Fri Aug 26 14:54:50 BST 2005com.sun.java.swing.plaf.windows

WindowsPopupMenuUI

public class WindowsPopupMenuUI extends BasicPopupMenuUI
Windows rendition of the component.

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.

Fields Summary
static MnemonicListener
mnemonicListener
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)


         
	return new WindowsPopupMenuUI();
    
public javax.swing.PopupgetPopup(javax.swing.JPopupMenu popupMenu, int x, int y)
Returns the Popup that will be responsible for displaying the JPopupMenu.

param
popupMenu JPopupMenu requesting Popup
param
x Screen x location Popup is to be shown at
param
y Screen y location Popup is to be shown at.
return
Popup that will show the JPopupMenu
since
1.4

        PopupFactory popupFactory = PopupFactory.getSharedInstance();
        return popupFactory.getPopup(popupMenu.getInvoker(), popupMenu, x, y);
    
public voidinstallListeners()

        super.installListeners();
	if (! UIManager.getBoolean("Button.showMnemonics") &&
            mnemonicListener == null) {

            mnemonicListener = new MnemonicListener();
            MenuSelectionManager.defaultManager().
                addChangeListener(mnemonicListener);
        }