JDK-7124365 : [macosx] setMaximizedBounds() should be implemented
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2015-07-15
  • Resolved: 2015-05-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b68Fixed
Related Reports
Duplicate :  
Relates :  
Description
http://java.net/jira/browse/MACOSX_PORT-385 submitted 2011/09/09 by Yuri Nesterenko
There is an optional feature of the Frame setMaximizedBounds(Rectangle). It does override a system-provided rectangle for the Frame, when maximized. It is optional in a sense that a platform may not honor it at all or use only size and/or not location of the user-supplied Rectangle. For instance, Apple JDK 6 and MS Windows does use all of the Rectangle; Gnome totally ignores location; Xfce ignores everything.
As of now (September) Mac Port does ignore this hint. Perhaps we even should consider it a regression from jdk 6.
I'm attaching a trivial example file for convenience.

Comments
RULE java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java Exception java.lang.RuntimeException: The bounds of the Frame do not equal to what is specified when the frame is in Frame.MAXIMIZED_BOTH state
07-05-2015

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

When this is implemented the following test should be updated: test/java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java
14-04-2014

EVALUATION Author: Yuri Nesterenko Date: 09/Sep/11 01:17 PM Build: b202 AWT_ZoomFrame/Automated/Frame/MaximizedBoundsTest/MaximizedBoundsTest.html AWT_ZoomFrame/Automated/JFrame/MaximizedBoundsTest/MaximizedBoundsTest.html AWT_ZoomFrame/Automated/UndecoratedFrame/MaximizedBoundsTest/MaximizedBoundsTest.html java/awt/Frame/ExtendedState/MaximizedBoundsTest.java Author: Leonid Romanov Date: 23/Sep/11 01:23 PM Use windowWillUseStandardFrame to override default frame when zooming
23-12-2011