<Swing Dev> [10][JDK-6714836] JRootPane.getMaximumSize() returns a width of 0
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Thu Aug 24 08:20:00 UTC 2017
You can add a regression test with the fix as JBS already has one.
Regards
Prasanta
On 8/24/2017 12:37 PM, Krishna Addepalli wrote:
>
> Hi All,
>
> Bug : JDK- 6714836 <https://bugs.openjdk.java.net/browse/JDK-6714836>
> <%3chttps:/bugs.openjdk.java.net/browse/JDK-6714836%3e>
>
> JDK 10 Webrev:
> http://cr.openjdk.java.net/~pkbalakr/Krishna/6714836/webrev00/
> <http://cr.openjdk.java.net/%7Epkbalakr/Krishna/6714836/webrev00/>
>
> The issue is that when a text label is added to JRootPane and query
> the maximumLayoutSize, it is returning 0. The root cause is because,
> JRootPane decides to provide the Minimum width of Menubar (which in
> this case is 0) and the content pane (which contains the JLabel).
> Actually, it should return the maximum of the two, since that is what
> is the layout size needed.
>
> Thanks,
>
> Krishna
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20170824/3a1f402d/attachment.html>
More information about the swing-dev
mailing list