From c5ab40d950dc0f8227f5fdb2aad0c9971eeaae43 Mon Sep 17 00:00:00 2001 From: alexsch Date: Wed, 6 Jun 2012 11:54:38 +0400 Subject: [PATCH] 7169285: [macosx] Test api/javax_swing/JPopupMenu/descriptions.html#setgetXXX doesn't take Mac main menu Reviewed-by: rupashka --- src/share/classes/javax/swing/JPopupMenu.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/share/classes/javax/swing/JPopupMenu.java b/src/share/classes/javax/swing/JPopupMenu.java index 8586542d0..10f929464 100644 --- a/src/share/classes/javax/swing/JPopupMenu.java +++ b/src/share/classes/javax/swing/JPopupMenu.java @@ -853,6 +853,11 @@ public class JPopupMenu extends JComponent implements Accessible,MenuElement { /** * Sets the location of the upper left corner of the * popup menu using x, y coordinates. + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code JPopupMenu} object is placed and sized + * in a way that corresponds closely to the desktop settings. * * @param x the x coordinate of the popup's new position * in the screen's coordinate space -- GitLab