From 5387110e1180f830c04a285be8dc084fc29ccbdc Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 14 Oct 2009 15:46:13 +0400 Subject: [PATCH] 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 --- src/share/classes/java/awt/Frame.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/share/classes/java/awt/Frame.java b/src/share/classes/java/awt/Frame.java index 761b9b842..ea8c6154c 100644 --- a/src/share/classes/java/awt/Frame.java +++ b/src/share/classes/java/awt/Frame.java @@ -845,8 +845,11 @@ public class Frame extends Window implements MenuContainer { * others by setting those fields you want to accept from system * to Integer.MAX_VALUE. *

- * 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() -- GitLab