*** 258,267 **** --- 258,268 ---- /** * Obtains the appropriate <code>Popup</code> based on * <code>popupType</code>. */ + @SuppressWarnings("deprecation") private Popup getPopup(Component owner, Component contents, int ownerX, int ownerY, int popupType) { if (GraphicsEnvironment.isHeadless()) { return getHeadlessPopup(owner, contents, ownerX, ownerY); }