Class BetterJPopupMenu

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, MenuElement

public class BetterJPopupMenu extends JPopupMenu
See Also:
  • Constructor Details

    • BetterJPopupMenu

      public BetterJPopupMenu()
    • BetterJPopupMenu

      public BetterJPopupMenu(String label)
  • Method Details

    • show

      public void show(Component invoker, int x, int y)
      Displays the popup menu at the position x,y in the coordinate space of the component invoker.

      This version fails silently if invoker is not currently showing, rather than throwing an exception.

      Overrides:
      show in class JPopupMenu
      Parameters:
      invoker - the component in whose space the popup menu is to appear
      x - the x coordinate in invoker's coordinate space at which the popup menu is to be displayed
      y - the y coordinate in invoker's coordinate space at which the popup menu is to be displayed