public class

WindowsPopupMenuUI

extends BasicPopupMenuUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.PopupMenuUI
       ↳ javax.swing.plaf.basic.BasicPopupMenuUI
         ↳ com.sun.java.swing.plaf.windows.WindowsPopupMenuUI

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicPopupMenuUI
Public Constructors
WindowsPopupMenuUI()
Public Methods
static ComponentUI createUI(JComponent c)
Popup getPopup(JPopupMenu popupMenu, int x, int y)
Returns the Popup that will be responsible for displaying the JPopupMenu.
void installListeners()
void paint(Graphics g, JComponent c)
Paints the specified component appropriate for the look and feel.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicPopupMenuUI
From class javax.swing.plaf.PopupMenuUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public WindowsPopupMenuUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

public Popup getPopup (JPopupMenu popupMenu, int x, int y)

Returns the Popup that will be responsible for displaying the JPopupMenu.

Parameters
popupMenu JPopupMenu requesting Popup
x Screen x location Popup is to be shown at
y Screen y location Popup is to be shown at.
Returns
  • Popup that will show the JPopupMenu

public void installListeners ()

public void paint (Graphics g, JComponent c)

Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Parameters
g the Graphics context in which to paint
c the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components