Mercurial > hg > release > icedtea7-forest-2.1 > jdk
changeset 1985:893a9122ae1b
6684916: jframe.setMaximizedBounds() has no effect in linux
Summary: Specification should indicate that the feature may be unsupported on some platforms.
Reviewed-by: art, dcherepanov
author | anthony |
---|---|
date | Wed, 14 Oct 2009 15:46:13 +0400 |
parents | 49c198e30d5e |
children | 9e98fd8daa1d |
files | src/share/classes/java/awt/Frame.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/awt/Frame.java Mon Oct 12 19:07:43 2009 +0400 +++ b/src/share/classes/java/awt/Frame.java Wed Oct 14 15:46:13 2009 +0400 @@ -845,8 +845,11 @@ * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> - * On some systems only the size portion of the bounds is taken - * into account. + * Note, the given maximized bounds are used as a hint for the native + * system, because the underlying platform may not support setting the + * location and/or size of the maximized windows. If that is the case, the + * provided values do not affect the appearance of the frame in the + * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds()