<Swing Dev> RFR JDK-8172804: SwingSet Automation: Jemmy Library : FrameOperator: maximize() and demaximize() are not properly implemented

Alexander Kouznetsov alexander.kouznetsov at oracle.com
Thu Feb 16 02:21:41 UTC 2017


Looks good to me.

Best regards,
Alexander Kouznetsov

On 1/16/2017 5:39 AM, Muneer Kolarkunnu wrote:
>
> Hi All,
>
> Please review the following:
>
> Bug : https://bugs.openjdk.java.net/browse/JDK-8172804
>
> Webrev Link: 
> http://cr.openjdk.java.net/~akolarkunnu/8172804/webrev.00/ 
> <http://cr.openjdk.java.net/%7Eakolarkunnu/8172804/webrev.00/>
>
> Summary: This is a fix for a bug in Jemmy code, that we found while 
> automating the SwingSet Demo.
>
> Previously maximize() was implemented using Frame.setSize() which will 
> set frame size as screen size, but its state is not changing, it will 
> be Frame.NORMAL itself.
> Now it is implementing using, Frame.setExtendedState() with 
> Frame.MAXIMIZED_BOTH as parameter, so that its actual state also will 
> set to Frame.MAXIMIZED_BOTH.
>
> Also demaximize() is not implemented completely. So demaximize() is 
> implementing using Frame.setExtendedState() with Frame.NORMAL .
>
> Regards,
>
> Muneer
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20170215/d10709a5/attachment.html>


More information about the swing-dev mailing list