On Thu, 17 Aug 2023 08:42:13 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> javadoc contract for JComponent.setMinimumSize(Dimension) states: > > "Sets the minimum size of this component to a constant value. Subsequent > calls to getMinimumSize will always return this value..." > > However, JScrollBar overrides getMinimumSize() and breaks this contract - it > always returns a minimum size derived from the preferred size even if you > have previously called setMinimumSize() > > Fix is made to check if mnimumSize is set and if so, honour it.. It looks like the same bug exists in the implementation of getMaximumSize(). BTW the GA are all read, I guess most of that issues were fixed since June 12. Please merge from master. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15325#issuecomment-1682814312
