<Swing Dev> RFR: 8265528: Specification of BasicSplitPaneDivider::getMinimumSize, getPreferredSize doesn't match with its behavior.
Sergey Bylokhov
serb at openjdk.java.net
Thu May 6 06:07:54 UTC 2021
On Thu, 6 May 2021 05:14:42 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java line 309:
>>
>>> 307: *
>>> 308: * @return a {@code Dimension} object containing the preferred size of
>>> 309: * {@code BasicSplitPaneDivider}
>>
>> I wonder how we usually specify the getPref/getMin methods. Do we really describe how it is implemented or just mention something like "Returns the minimum size for the XXX".
>
> There's instances of both so I took the liberty to err on the more elaborate way so as to not leave anything ambiguous.
But then it will not be possible to change it in the future here or in any subclasses to say 2 pixels, etc.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3870
More information about the swing-dev
mailing list