<Swing Dev> Swing Dev>[9] Review Request JDK-8158918 setExtendedState(1) for maximized Frame results in state==7
Alexandr Scherbatiy
alexandr.scherbatiy at oracle.com
Thu Jul 14 15:24:24 UTC 2016
On 7/14/2016 1:18 PM, Rajeev Chamyal wrote:
>
> Hello All,
>
> Please review the following webrev.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8158918
>
> Webrev: http://cr.openjdk.java.net/~rchamyal/8158918/webrev.00/
> <http://cr.openjdk.java.net/%7Erchamyal/8158918/webrev.00/>
>
> Issue: Frame setExtendedState = 1 on a maximized frame is not working.
>
> Cause: Issue is due to ::ShowWindow API call added as part of fix for
> JDK-8037575 <https://bugs.openjdk.java.net/browse/JDK-8037575>
>
> Fix: Removed the ShowWindow call a sepate bug will be created for
> JDK-8037575 <https://bugs.openjdk.java.net/browse/JDK-8037575>
>
40 if (frame.getExtendedState() != 1) {
It is better to use the named frame state constant instead of just 1.
Thanks,
Alexandr.
>
> Regards,
>
> Rajeev Chamyal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160714/4ec948f6/attachment.html>
More information about the swing-dev
mailing list