<AWT Dev> Review request for 6429675: getMaximumsize() size of the frame less than the minimumsize of Frame.
ambarish.rapte at oracle.com
Fri Apr 29 14:09:26 UTC 2016
Please review the fix for JDK 9,
1. setMaximumSize() can set maximum size of a Frame smaller than minimumSize of frame.
2. setMinimumSize() can set minimum size of a Frame greater than maximumSize of frame.
These are sizes are used for layout. In addition there is third size named preferred size.
Preferred size is only suggestion & not mandatory size, hence this change does not consider modifying preferred size.
Maximum size is neglected in layout logic.
Hence we decided that, minimum size should hold the priority.
Current fix is: Always maintain maximum size greater or equal to minimum size.
1. If minimum size is set to a size greater than maximum size, then update the maximum size to same as new minimum size.
2. If maximum size is set to a size smaller than minimum size, then update the maximum size to same as current minimum size.
There is also API doc change, as per the new behavior.
Verified regression and JCK tests of Frame & Layout.
No failures due to this fix.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev