--- old/src/java.desktop/share/classes/javax/swing/PopupFactory.java 2016-10-19 11:53:07.374303341 -0700 +++ new/src/java.desktop/share/classes/javax/swing/PopupFactory.java 2016-10-19 11:53:07.250303337 -0700 @@ -614,6 +614,7 @@ * Returns true if popup can fit the screen and the owner's top parent. * It determines can popup be lightweight or mediumweight. */ + @SuppressWarnings("deprecation") boolean fitsOnScreen() { boolean result = false; Component component = getComponent(); @@ -783,6 +784,8 @@ component.removeAll(); recycleLightWeightPopup(this); } + + @SuppressWarnings("deprecation") public void show() { Container parent = null; @@ -938,6 +941,8 @@ rootPane.getContentPane().removeAll(); recycleMediumWeightPopup(this); } + + @SuppressWarnings("deprecation") public void show() { Component component = getComponent(); Container parent = null;