<Swing Dev> Bug : JDK-8078831 Mismatch of getPreferredSize() and getPreferredScrollableViewportSize() values in WindowsClassicLookAndFeel

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Wed Aug 26 13:12:15 UTC 2015


On 8/26/2015 12:13 PM, Rajeev Chamyal wrote:
> Hi,
>
> Please review the following fix for jdk9:
>   
> Bug:https://bugs.openjdk.java.net/browse/JDK-8078831  
>
> Webrev : 
> http://cr.openjdk.java.net/~psadhukhan/rajeev/5042886/webrev.00/ 
> <http://cr.openjdk.java.net/%7Epsadhukhan/rajeev/5042886/webrev.00/>
>
> getPreferredScrollableViewportSize() must not return the same as getPreferredSize() but it should return equal or less size. Test condition was checking for inequality and throwing Runtime exception.
>   

    Please, split lines which are longer than 80 characters.

   Thanks,
   Alexandr.

> Regards,
> Rajeev Chamyal
>




More information about the swing-dev mailing list