7169285: [macosx] Test api/javax_swing/JPopupMenu/descriptions.html#setgetXXX doesn't take Mac main menu
authoralexsch
Wed, 06 Jun 2012 11:54:38 +0400
changeset 12833 1732e46e976b
parent 12832 95c583ed43e1
child 12834 6dc96f9ffb73
7169285: [macosx] Test api/javax_swing/JPopupMenu/descriptions.html#setgetXXX doesn't take Mac main menu Reviewed-by: rupashka
jdk/src/share/classes/javax/swing/JPopupMenu.java
--- a/jdk/src/share/classes/javax/swing/JPopupMenu.java	Tue Jun 05 18:05:00 2012 -0700
+++ b/jdk/src/share/classes/javax/swing/JPopupMenu.java	Wed Jun 06 11:54:38 2012 +0400
@@ -853,6 +853,11 @@
     /**
      * Sets the location of the upper left corner of the
      * popup menu using x, y coordinates.
+     * <p>
+     * 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