< prev index next >

src/java.desktop/share/classes/java/awt/PopupMenu.java

Print this page

        

*** 152,161 **** --- 152,162 ---- * has a non-{@code Component} parent * @exception IllegalArgumentException if the origin is not in the * parent's hierarchy * @exception RuntimeException if the parent is not showing on screen */ + @SuppressWarnings("deprecation") public void show(Component origin, int x, int y) { // Use localParent for thread safety. MenuContainer localParent = parent; if (localParent == null) { throw new NullPointerException("parent is null");
< prev index next >